We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
In [110]: x = Timestamp('20130101')
Last day of month
In [111]: pd.tslib.monthrange(x.year,x.month)[1]==x.day Out[111]: False
First day of month
In [112]: x.day==1 Out[112]: True
First day of year
In [113]: x.day==1 & x.month==1 Out[113]: True
http://stackoverflow.com/questions/18233107/pandas-convert-datetime-to-end-of-month/18233876?noredirect=1#comment26732170_18233876