Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

Commit d9bfb35

Browse files
committed
format_aal_summary_property: Remove unnecessary column rename
1 parent d165027 commit d9bfb35

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

firststreet/api/csv_format.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ def expand_dl(dl):
11851185
if pd.isnull(dl):
11861186
return pd.NA, pd.NA
11871187
return dl['depth'], dl['data']
1188-
df['depth'], df['data'] = zip(*df['depth_loss'].apply(expand_dl))
1188+
df['depth'], df['damage'] = zip(*df['depth_loss'].apply(expand_dl))
11891189
df.drop(['depth_loss'], axis=1)
11901190
else:
11911191
df['fsid'] = df['fsid'].apply(str)
@@ -1198,7 +1198,6 @@ def expand_dl(dl):
11981198
df['mid'] = pd.NA
11991199
df['high'] = pd.NA
12001200

1201-
df.rename(columns={'data': 'damage'}, inplace=True)
12021201
df['fsid'] = df['fsid'].apply(str)
12031202
df['year'] = df['year'].astype('Int64').apply(str)
12041203
df['low'] = df['low'].astype('Int64').apply(str)

0 commit comments

Comments
 (0)