create period pandas

#Creating a period which has a default frequency of 'M' Months
period = pd.Period('2017-1')

Here is what the above code is Doing:
1. We are creating a period object with a default frequency of ‘M’ (Month)
2. The period object is created with the year 2017 and month 1
3. The period object is created with the year 2017 and month 1