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

Commit 295d259

Browse files
authored
Merge pull request #36 from FirstStreet/bugfix
Fix bug with CSV using the city_fips instead of elevation
2 parents 8b28fdb + e9d1141 commit 295d259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firststreet/api/csv_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ def format_location_detail_property(data):
700700
df['cd_fips'] = df['cd_fips'].astype('Int64').apply(str)
701701
df['state_fips'] = df['state_fips'].astype('Int64').apply(str).apply(lambda x: x.zfill(2))
702702
df['footprintId'] = df['footprintId'].astype('Int64').apply(str)
703-
df['elevation'] = df['city_fips'].apply(str)
703+
df['elevation'] = df['elevation'].apply(str)
704704
df['geometry'] = df['geometry'].apply(get_geom_center)
705705
df = pd.concat([df.drop(['geometry'], axis=1), df['geometry'].apply(pd.Series)], axis=1)
706706

0 commit comments

Comments
 (0)