Update commands to remove errors
This commit is contained in:
parent
33170d7dd9
commit
4271908338
|
@ -75,17 +75,17 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"execution_count": 3,
|
||||
"id": "69dd7908-b213-4d0f-8016-e46a4a491961",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"40"
|
||||
"20"
|
||||
]
|
||||
},
|
||||
"execution_count": 4,
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
|
@ -130,7 +130,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"execution_count": 4,
|
||||
"id": "ba09a0f8-27d9-456f-aeff-3980e3362d5b",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
|
@ -140,7 +140,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"execution_count": 5,
|
||||
"id": "a29d508a-2d9a-4d62-9ff6-7a0ecfd5eba4",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
|
@ -2097,7 +2097,7 @@
|
|||
"source": [
|
||||
"**When you want to compare the distribution of a numeric variable across categories**, a [barplot](https://seaborn.pydata.org/generated/seaborn.barplot.html) is a good choice. Choose one numeric column and one categorical column. \n",
|
||||
"\n",
|
||||
"Let's see pokémon hit points by legendary/non-legendary. `ci=\"sd\"` shows the standard deviation for each category. "
|
||||
"Let's see pokémon hit points by legendary/non-legendary. `errorbar=\"sd\"` shows the standard deviation for each category. "
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -2106,17 +2106,6 @@
|
|||
"id": "92be1ad0-12bb-49f0-a3f6-85fcfd98e943",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"/var/folders/ck/ysvy_zj13nz1wtz7mxcy_8djkbv7gs/T/ipykernel_59301/2530434476.py:1: FutureWarning: \n",
|
||||
"\n",
|
||||
"The `ci` parameter is deprecated. Use `errorbar='sd'` for the same effect.\n",
|
||||
"\n",
|
||||
" sns.barplot(data=pokemon, x=\"legendary\", y=\"hp\", ci=\"sd\")\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
|
@ -2139,7 +2128,7 @@
|
|||
}
|
||||
],
|
||||
"source": [
|
||||
"sns.barplot(data=pokemon, x=\"legendary\", y=\"hp\", ci=\"sd\")"
|
||||
"sns.barplot(data=pokemon, x=\"legendary\", y=\"hp\", errorbar=\"sd\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -2147,7 +2136,7 @@
|
|||
"id": "4f75e1fa-a5d7-4d2c-a458-8190a7cd700e",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"Here, we use a barplot to show average hit points by type. `ci=None` removes the standard deviation bars, because they clutter up the plot with too much detail. "
|
||||
"Here, we use a barplot to show average hit points by type. `errorbar=None` removes the standard deviation bars, because they clutter up the plot with too much detail. "
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -2156,22 +2145,6 @@
|
|||
"id": "17f1c289-5990-4420-bfcb-e50eee0b8af6",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"/var/folders/ck/ysvy_zj13nz1wtz7mxcy_8djkbv7gs/T/ipykernel_59301/1967416016.py:1: FutureWarning: \n",
|
||||
"\n",
|
||||
"The `ci` parameter is deprecated. Use `errorbar=None` for the same effect.\n",
|
||||
"\n",
|
||||
" sns.barplot(data=pokemon, x=\"hp\", y=\"type\", ci=None, palette=\"muted\")\n",
|
||||
"/var/folders/ck/ysvy_zj13nz1wtz7mxcy_8djkbv7gs/T/ipykernel_59301/1967416016.py:1: FutureWarning: \n",
|
||||
"\n",
|
||||
"Passing `palette` without assigning `hue` is deprecated and will be removed in v0.14.0. Assign the `y` variable to `hue` and set `legend=False` for the same effect.\n",
|
||||
"\n",
|
||||
" sns.barplot(data=pokemon, x=\"hp\", y=\"type\", ci=None, palette=\"muted\")\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
|
@ -2194,7 +2167,7 @@
|
|||
}
|
||||
],
|
||||
"source": [
|
||||
"sns.barplot(data=pokemon, x=\"hp\", y=\"type\", ci=None, palette=\"muted\")"
|
||||
"sns.barplot(data=pokemon, x=\"hp\", y=\"type\", hue=\"type\", errorbar=None, palette=\"muted\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -2347,7 +2320,7 @@
|
|||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"<seaborn.axisgrid.FacetGrid at 0x10f66fcb0>"
|
||||
"<seaborn.axisgrid.FacetGrid at 0x131a01e80>"
|
||||
]
|
||||
},
|
||||
"execution_count": 35,
|
||||
|
@ -2533,7 +2506,7 @@
|
|||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.13.3"
|
||||
"version": "3.13.5"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
|
Loading…
Reference in New Issue