Run notebooks with updates and custom kernel

This commit is contained in:
Alexander Hess 2024-07-09 16:42:10 +02:00
commit baa7d06cdc
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
6 changed files with 189 additions and 163 deletions

View file

@ -1480,7 +1480,7 @@
"for column, mapping_info in LABEL_COLUMNS.items():\n",
" # Note that .unique() returns a numpy array with integer dtype in cases\n",
" # where the provided data can be casted as such (e.g., \"Overall Qual\" column).\n",
" values_in_data = set(str(x) for x in df[column].unique() if x is not np.NaN)\n",
" values_in_data = set(str(x) for x in df[column].unique() if x is not np.nan)\n",
" values_in_description = set(mapping_info[\"lookups\"].keys())\n",
" assert values_in_data <= values_in_description"
]
@ -1877,7 +1877,7 @@
"output_type": "stream",
"text": [
"<class 'pandas.core.frame.DataFrame'>\n",
"MultiIndex: 2930 entries, (1, 526301100) to (2930, 924151050)\n",
"MultiIndex: 2930 entries, (np.int64(1), np.int64(526301100)) to (np.int64(2930), np.int64(924151050))\n",
"Data columns (total 19 columns):\n",
" # Column Non-Null Count Dtype \n",
"--- ------ -------------- ----- \n",
@ -2208,7 +2208,7 @@
"output_type": "stream",
"text": [
"<class 'pandas.core.frame.DataFrame'>\n",
"MultiIndex: 2930 entries, (1, 526301100) to (2930, 924151050)\n",
"MultiIndex: 2930 entries, (np.int64(1), np.int64(526301100)) to (np.int64(2930), np.int64(924151050))\n",
"Data columns (total 14 columns):\n",
" # Column Non-Null Count Dtype \n",
"--- ------ -------------- ----- \n",
@ -2765,7 +2765,7 @@
"output_type": "stream",
"text": [
"<class 'pandas.core.frame.DataFrame'>\n",
"MultiIndex: 2930 entries, (1, 526301100) to (2930, 924151050)\n",
"MultiIndex: 2930 entries, (np.int64(1), np.int64(526301100)) to (np.int64(2930), np.int64(924151050))\n",
"Data columns (total 23 columns):\n",
" # Column Non-Null Count Dtype \n",
"--- ------ -------------- ----- \n",
@ -3320,7 +3320,7 @@
"output_type": "stream",
"text": [
"<class 'pandas.core.frame.DataFrame'>\n",
"MultiIndex: 2930 entries, (1, 526301100) to (2930, 924151050)\n",
"MultiIndex: 2930 entries, (np.int64(1), np.int64(526301100)) to (np.int64(2930), np.int64(924151050))\n",
"Data columns (total 23 columns):\n",
" # Column Non-Null Count Dtype \n",
"--- ------ -------------- ----- \n",
@ -3382,9 +3382,7 @@
"<Figure size 1800x720 with 2 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"metadata": {},
"output_type": "display_data"
}
],
@ -3404,9 +3402,7 @@
"<Figure size 1800x720 with 2 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"metadata": {},
"output_type": "display_data"
}
],
@ -3426,9 +3422,7 @@
"<Figure size 1800x720 with 2 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"metadata": {},
"output_type": "display_data"
}
],
@ -3448,9 +3442,7 @@
"<Figure size 1800x720 with 2 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"metadata": {},
"output_type": "display_data"
}
],
@ -4331,9 +4323,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "ames-housing",
"language": "python",
"name": "python3"
"name": "ames-housing"
},
"language_info": {
"codemirror_mode": {
@ -4345,7 +4337,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5"
"version": "3.12.4"
}
},
"nbformat": 4,