Spaces:
Sleeping
Sleeping
Commit
·
b2bdf82
1
Parent(s):
d74d2ee
Update app.py
Browse files
app.py
CHANGED
|
@@ -120,14 +120,13 @@ for c in missing_cols:
|
|
| 120 |
df_hail_cut_group2 = df_hail_cut_group[cols_focus].query(
|
| 121 |
"`Within 3 Miles`==`Within 3 Miles`")
|
| 122 |
|
| 123 |
-
for i in range(len(
|
| 124 |
df_hail_cut_group2[cols_focus[i+1]] = np.where(df_hail_cut_group2[cols_focus[i+1]].fillna(0) <
|
| 125 |
df_hail_cut_group2[cols_focus[i]].fillna(0),
|
| 126 |
df_hail_cut_group2[cols_focus[i]],
|
| 127 |
df_hail_cut_group2[cols_focus[i+1]])
|
| 128 |
|
| 129 |
|
| 130 |
-
|
| 131 |
df_hail_cut_group2 = df_hail_cut_group2.sort_index(ascending=False)
|
| 132 |
|
| 133 |
df_hail_cut_group2.index = pd.to_datetime(
|
|
|
|
| 120 |
df_hail_cut_group2 = df_hail_cut_group[cols_focus].query(
|
| 121 |
"`Within 3 Miles`==`Within 3 Miles`")
|
| 122 |
|
| 123 |
+
for i in range(len(cols_focus)-1):
|
| 124 |
df_hail_cut_group2[cols_focus[i+1]] = np.where(df_hail_cut_group2[cols_focus[i+1]].fillna(0) <
|
| 125 |
df_hail_cut_group2[cols_focus[i]].fillna(0),
|
| 126 |
df_hail_cut_group2[cols_focus[i]],
|
| 127 |
df_hail_cut_group2[cols_focus[i+1]])
|
| 128 |
|
| 129 |
|
|
|
|
| 130 |
df_hail_cut_group2 = df_hail_cut_group2.sort_index(ascending=False)
|
| 131 |
|
| 132 |
df_hail_cut_group2.index = pd.to_datetime(
|