Skip to content

Commit 57649ff

Browse files
authored
Merge pull request aws#239 from qx0731/patch-1
Update the helper function to cat is not Non
2 parents 988bc3c + ebdaa6e commit 57649ff

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)