We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b42a635 commit 664e1f1Copy full SHA for 664e1f1
chapter_4/time_series/example2.py
@@ -0,0 +1,7 @@
1
+import numpy as np
2
+import pandas as pd
3
+
4
+index = pd.DatetimeIndex(['2014-07-04', '2014-08-04',
5
+ '2015-07-04', '2015-08-04'])
6
+data = pd.Series([0, 1, 2, 3], index=index)
7
+print(data)
0 commit comments