Skip to content

Commit

Permalink
fixup! WIP: Update air quality data to use more recent data and also …
Browse files Browse the repository at this point in the history
…include WHO standards
  • Loading branch information
struan committed Apr 1, 2024
1 parent 008e85c commit 27fcd83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hub/management/commands/import_air_quality_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ def get_dataframe(self):
skiprows=5,
na_values="MISSING",
dtype={"gridcode": "int", metadata["header_label"]: "float"},
).rename(columns={metadata["header_label"]: label}).assign(WHO_AQG=lambda x: metadata.get('WHO_AQG', None))
)
.rename(columns={metadata["header_label"]: label})
.assign(WHO_AQG=lambda x: metadata.get("WHO_AQG", None))
)

print("Transforming data")
Expand Down

0 comments on commit 27fcd83

Please sign in to comment.