def month_plot(x, dates=None, ylabel=None, ax=None):
 from pandas import DataFrame
 if (dates is None):
  from statsmodels.tools.data import _check_period_index
  _check_period_index(x, freq='M')
 else:
  from pandas import Series, PeriodIndex
  x = Series(x, index=PeriodIndex(dates, freq='M'))
 xticklabels = ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd']
 return seasonal_plot(x.groupby((lambda y: y.month)), xticklabels, ylabel=ylabel, ax=ax)

def month_plot ( x , dates = None , ylabel = None , ax = None ) : from pandas import DataFrame if ( dates is None ) : from statsmodels . tools . data import _check_period_index _check_period_index ( x , freq = 'M' ) else : from pandas import Series , PeriodIndex x = Series ( x , index = PeriodIndex ( dates , freq = 'M' ) ) xticklabels = [ 'j' , 'f' , 'm' , 'a' , 'm' , 'j' , 'j' , 'a' , 's' , 'o' , 'n' , 'd' ] return seasonal_plot ( x . groupby ( ( lambda y : y . month ) ) , xticklabels , ylabel = ylabel , ax = ax )
seasonal plot of monthly data parameters x : array-like seasonal data to plot .