Skip to content

Commit

Permalink
Fix to ingestion
Browse files Browse the repository at this point in the history
  • Loading branch information
dividor committed May 28, 2024
1 parent 1fb9f7b commit ef491b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ingestion/api/hapi_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def post_process_data(df, standard_names):
df = filter_hapi_df(df, standard_names["admin0_code_field"])

# Add a flag to indicate latest dataset by HDX ID, useful for LLM queries
if "resource_hdx_id" in df.columns:
if "dataset_hdx_stub" in df.columns:
df["latest"] = 0
df["reference_period_start"] = pd.to_datetime(df["reference_period_start"])
df["latest"] = df.groupby("dataset_hdx_stub")[
Expand Down

0 comments on commit ef491b6

Please sign in to comment.