Skip to content

Commit

Permalink
Merge pull request #1063 from devinit/feature/fix-rhfp
Browse files Browse the repository at this point in the history
Replace pd df append with concat for pandas 2
  • Loading branch information
akmiller01 authored Apr 11, 2024
2 parents 1f16139 + 1d15449 commit 025f31f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data_updates/Python/iati_rhfp.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@

data = data.groupby(["Year","recipient_name","country","Code type"]).agg({"disbursed":"sum"}).reset_index()

data = data.append(pd.DataFrame(data = total_data),ignore_index=True)
data = pd.concat([data, pd.DataFrame(data = total_data)],ignore_index=True)

# Put it in millions

Expand Down
2 changes: 1 addition & 1 deletion data_updates/Python/oecd_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
total_data = recip_data.groupby(["Donor Name","Recipient Name","Year"]).agg({"USD Disbursement Deflated":"sum"}).reset_index()
total_data['Purpose Name'] = "Reproductive health care and family planning"

recip_data = recip_data.append(pd.DataFrame(data = total_data),ignore_index=True)
recip_data = pd.concat([recip_data, pd.DataFrame(data = total_data)], ignore_index=True)

max_year = recip_data["Year"].max()

Expand Down

0 comments on commit 025f31f

Please sign in to comment.