Skip to content

Commit 0bd0613

Browse files
committed
fix time series printing (again)
1 parent 52da2a9 commit 0bd0613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

04-representing-data-feature-engineering.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2055,7 +2055,7 @@
20552055
"plt.figure(figsize=(10, 3))\n",
20562056
"xticks = pd.date_range(start=citibike.index.min(), end=citibike.index.max(),\n",
20572057
" freq='D')\n",
2058-
"plt.xticks(xticks.astype(\"int\"), xticks.strftime(\"%a %m-%d\"), rotation=90, ha=\"left\")\n",
2058+
"plt.xticks(xticks, xticks.strftime(\"%a %m-%d\"), rotation=90, ha=\"left\")\n",
20592059
"plt.plot(citibike, linewidth=1)\n",
20602060
"plt.xlabel(\"Date\")\n",
20612061
"plt.ylabel(\"Rentals\")"

0 commit comments

Comments
 (0)