Pandas > Create series with date/time index

Name
Code
Output
months_index = pandas.date_range('1/1/2015', periods=12, freq='M')
series = pandas.Series(numpy.random.randint(0,100,size=(12,)),index = months_index)
print ("series")
print (series)
series
2015-01-31    45
2015-02-28    59
2015-03-31    66
2015-04-30    50
2015-05-31    82
2015-06-30     2
2015-07-31    18
2015-08-31    41
2015-09-30    63
2015-10-31    37
2015-11-30    89
2015-12-31    31
Freq: M, dtype: int64