feat(ds-2.2, 2e)
This commit is contained in:
@ -490,7 +490,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 8,
|
||||
"execution_count": null,
|
||||
"id": "0772c391-4ad6-4fcc-8754-97b575bca1c5",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -512,7 +512,10 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"df[['county', 'age']].groupby('county')['age']\\\n",
|
||||
"group = df[['county', 'age']].groupby('county').agg([pl.max().alias('max'), pl.min()])\n",
|
||||
"min = group.min()\n",
|
||||
"max = group.max()\n",
|
||||
"['age']\\\n",
|
||||
" .mean()\\\n",
|
||||
" .sort_values(ascending=False)\\\n",
|
||||
" .head()"
|
||||
|
||||
Reference in New Issue
Block a user