fixed block 12

This commit is contained in:
2026-03-29 20:25:32 -04:00
parent dc3722ca08
commit a34b004ee0

View File

@@ -971,7 +971,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 28, "execution_count": null,
"metadata": { "metadata": {
"id": "NuKqemiiKPR_" "id": "NuKqemiiKPR_"
}, },
@@ -1009,7 +1009,7 @@
"# >>> ADD CODE HERE TO KEEP THE WARNING FROM HAPPENING <<<\n", "# >>> ADD CODE HERE TO KEEP THE WARNING FROM HAPPENING <<<\n",
"\n", "\n",
"df_final['irisname'] = df_final['irisname'].apply(convertSpecies)\n", "df_final['irisname'] = df_final['irisname'].apply(convertSpecies)\n",
"df_final.loc[:, 'irisname'] = df_final['irisname'].apply(convertSpecies)\n", "#df_final.loc[:, 'irisname'] = df_final['irisname'].apply(convertSpecies)\n",
"# Don't run this twice! Why?! What's \"KeyError: 0\"?\n", "# Don't run this twice! Why?! What's \"KeyError: 0\"?\n",
"# (of course, you can always go back and re-establish definitions of df_final)\n", "# (of course, you can always go back and re-establish definitions of df_final)\n",
"\n" "\n"