Skip to content

Commit ebdaa6e

Browse files
authored
Update the helper function to cat is not Non
Otherwise, cat = 0 won't be written to the data file
1 parent 8e6864f commit ebdaa6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

introduction_to_amazon_algorithms/deepar_synthetic/deepar_synthetic.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@
265265
"source": [
266266
"def series_to_obj(ts, cat=None):\n",
267267
" obj = {\"start\": str(ts.index[0]), \"target\": list(ts)}\n",
268-
" if cat:\n",
268+
" if cat is not None:\n",
269269
" obj[\"cat\"] = cat\n",
270270
" return obj\n",
271271
"\n",

0 commit comments

Comments
 (0)