diff --git a/modern_3_indexes.ipynb b/modern_3_indexes.ipynb index 8d59efa..f6c7164 100644 --- a/modern_3_indexes.ipynb +++ b/modern_3_indexes.ipynb @@ -2376,7 +2376,7 @@ " '''\n", " Arbitrarily break ties.\n", " '''\n", - " return x.value_counts().index[0]\n", + " return x.mode().iloc[0]\n", "\n", "aggfuncs = {'tmpf': 'mean', 'relh': 'mean',\n", " 'sped': 'mean', 'mslp': 'mean',\n",