Skip to content

Commit 55c0d21

Browse files
authored
Update pandas_dataframe.ipynb
1 parent 460419a commit 55c0d21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/en/tutorials/load_data/pandas_dataframe.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
},
9393
"outputs": [],
9494
"source": [
95+
"import numpy as np\n",
9596
"import pandas as pd\n",
9697
"import tensorflow as tf\n",
9798
"\n",
@@ -292,7 +293,7 @@
292293
"outputs": [],
293294
"source": [
294295
"normalizer = tf.keras.layers.Normalization(axis=-1)\n",
295-
"normalizer.adapt(numeric_features)"
296+
"normalizer.adapt(np.array(numeric_features))"
296297
]
297298
},
298299
{

0 commit comments

Comments
 (0)