Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,10 +103,11 @@ with tab1:
|
|
| 103 |
df_sorted = df[[str(h) for h in ascending_headers if str(h) in df.columns]]
|
| 104 |
df_sorted = df[[str(h) for h in ascending_headers if str(h) in df.columns]].copy()
|
| 105 |
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
|
|
|
|
| 110 |
st.subheader("Binary Labels (Ascending Order 3244 → 4882)")
|
| 111 |
st.dataframe(df_sorted)
|
| 112 |
st.download_button("Download Ascending Order CSV", df_sorted.to_csv(index=False), "text_binary_labels_ascending.csv", key="download_csv_tab1_ascend")
|
|
|
|
| 103 |
df_sorted = df[[str(h) for h in ascending_headers if str(h) in df.columns]]
|
| 104 |
df_sorted = df[[str(h) for h in ascending_headers if str(h) in df.columns]].copy()
|
| 105 |
|
| 106 |
+
if "3614" not in df_sorted.columns:
|
| 107 |
+
idx = df_sorted.columns.get_loc("3562") + 1 # Insert after 3562
|
| 108 |
+
df_sorted.insert(idx, "3614", 0)
|
| 109 |
|
| 110 |
+
print(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")
|