Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,7 +101,8 @@ with tab1:
|
|
| 101 |
|
| 102 |
ascending_headers = sorted(mutation_site_headers_actual)
|
| 103 |
df_sorted = df[[str(h) for h in ascending_headers if str(h) in df.columns]]
|
| 104 |
-
|
|
|
|
| 105 |
# Insert fake column for 3614 with all 0s, in the correct position
|
| 106 |
insertion_index = df_sorted.columns.get_loc("3562") + 1 # insert after 3562
|
| 107 |
df_sorted.insert(insertion_index, "3614", 0)
|
|
|
|
| 101 |
|
| 102 |
ascending_headers = sorted(mutation_site_headers_actual)
|
| 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 |
# Insert fake column for 3614 with all 0s, in the correct position
|
| 107 |
insertion_index = df_sorted.columns.get_loc("3562") + 1 # insert after 3562
|
| 108 |
df_sorted.insert(insertion_index, "3614", 0)
|