Spaces:
Running
Running
Zekun Wu
commited on
Commit
·
f2b9677
1
Parent(s):
a3a3cb0
update
Browse files- pages/1_Injection.py +1 -1
pages/1_Injection.py
CHANGED
@@ -87,7 +87,7 @@ else:
|
|
87 |
st.session_state.num_run = st.number_input("Number of Runs", 1, 10, st.session_state.num_run)
|
88 |
|
89 |
df = df[df["Occupation"] == st.session_state.occupation]
|
90 |
-
df = df.sample(n=st.session_state.sample_size)
|
91 |
st.write('Data:', df)
|
92 |
|
93 |
if st.button('Process Data') and not st.session_state.data_processed:
|
|
|
87 |
st.session_state.num_run = st.number_input("Number of Runs", 1, 10, st.session_state.num_run)
|
88 |
|
89 |
df = df[df["Occupation"] == st.session_state.occupation]
|
90 |
+
df = df.sample(n=st.session_state.sample_size,random_state=42)
|
91 |
st.write('Data:', df)
|
92 |
|
93 |
if st.button('Process Data') and not st.session_state.data_processed:
|