Dave Hirschfeld
unread,Jul 31, 2012, 11:32:57 AM7/31/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PyData
In [131]: pd.__version__
Out[131]: '0.8.1'
In [133]: months = pd.period_range('01-Aug-2012', periods=14,
freq='M')
In [134]: months [0]
Out[134]: Period('Aug-2012', 'M')
In [135]: periods.to_timestamp(how='start')[0]
Out[135]: <Timestamp: 2012-08-31 00:00:00> <======= ??????
In[136]: periods.to_timestamp(freq='D', how='start')[0]
Out[136]: <Timestamp: 2012-08-01 00:00:00>
In [137]: periods.to_timestamp(freq='D', how='start')[0].freq
Out[137]: <1 MonthBegin> <======== ?????????????????????
On the first ??? line I think the result should be 2012-08-01
On the second ??? line I assumed the frequency would be daily
Are these bugs or is my understanding incorrect?
Regards,
Dave