Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -107,7 +107,7 @@ with tab1:
|
|
| 107 |
idx = df_sorted.columns.get_loc("3562") + 1 # Insert after 3562
|
| 108 |
df_sorted.insert(idx, "3614", 0)
|
| 109 |
|
| 110 |
-
|
| 111 |
st.subheader("Binary Labels (Ascending Order 3244 → 4882)")
|
| 112 |
st.dataframe(df_sorted)
|
| 113 |
st.download_button("Download Ascending Order CSV", df_sorted.to_csv(index=False), "text_binary_labels_ascending.csv", key="download_csv_tab1_ascend")
|
|
@@ -130,6 +130,9 @@ with tab1:
|
|
| 130 |
robot_script = []
|
| 131 |
source_wells = robot_template['Source'].unique().tolist()[:33]
|
| 132 |
|
|
|
|
|
|
|
|
|
|
| 133 |
for i, col in enumerate(df_sorted.columns[1:33]):
|
| 134 |
for row_idx, sample in df_sorted.iterrows():
|
| 135 |
if sample[col] == 1:
|
|
|
|
| 107 |
idx = df_sorted.columns.get_loc("3562") + 1 # Insert after 3562
|
| 108 |
df_sorted.insert(idx, "3614", 0)
|
| 109 |
|
| 110 |
+
st.write(df_sorted.head(1))
|
| 111 |
st.subheader("Binary Labels (Ascending Order 3244 → 4882)")
|
| 112 |
st.dataframe(df_sorted)
|
| 113 |
st.download_button("Download Ascending Order CSV", df_sorted.to_csv(index=False), "text_binary_labels_ascending.csv", key="download_csv_tab1_ascend")
|
|
|
|
| 130 |
robot_script = []
|
| 131 |
source_wells = robot_template['Source'].unique().tolist()[:33]
|
| 132 |
|
| 133 |
+
st.write(f"Number of source wells: {len(source_wells)}")
|
| 134 |
+
st.write(f"Number of binary columns: {len(df_sorted.columns[1:33])}")
|
| 135 |
+
|
| 136 |
for i, col in enumerate(df_sorted.columns[1:33]):
|
| 137 |
for row_idx, sample in df_sorted.iterrows():
|
| 138 |
if sample[col] == 1:
|