Skip to content

Commit dad49f8

Browse files
update sum() to be compatible with pandas 2.0.0 - 2nd
1 parent c9ea1ef commit dad49f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/04_gis_analysts_data_scientists/covid19_part1_mapping_the_pandemic.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@
17191719
],
17201720
"source": [
17211721
"# sorted by # of confirmed cases\n",
1722-
"df_global_sum = df_global.groupby('Country_Region').sum()[['Confirmed', 'Recovered', 'Deaths']]\n",
1722+
"df_global_sum = df_global.groupby('Country_Region').sum(numeric_only=True)[['Confirmed', 'Recovered', 'Deaths']]\n",
17231723
"df_global_sum_c = df_global_sum.sort_values(by = ['Confirmed'], ascending = False)\n",
17241724
"df_global_sum_c.head(10)"
17251725
]

0 commit comments

Comments
 (0)