Skip to content

Commit 7abbe00

Browse files
committed
[fix] Level keyword is deprecated from pandas v1.3
1 parent 457b15f commit 7abbe00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

100-pandas-puzzles-with-solutions.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@
595595
"df = pd.DataFrame({'grps': list('aaabbcaabcccbbc'), \n",
596596
" 'vals': [12,345,3,1,45,14,4,52,54,23,235,21,57,3,87]})\n",
597597
"\n",
598-
"df.groupby('grps')['vals'].nlargest(3).sum(level=0)"
598+
"df.groupby('grps')['vals'].nlargest(3).groupby('grps').sum()"
599599
]
600600
},
601601
{

0 commit comments

Comments
 (0)