Periode perubahan panda

#Change daily period to monthly period
data = data.to_period('M')
M.U