Truncate on series causes core dump when TZ is specified on index #9243
This works fine:
However this core dumps for me:
The only difference is adding the TZ parameter to the date_range to set the index for a particular timezone.
This was working fine in .15, but seems to be broken in .15.2
here you go:
In : pandas.show_versions()
Thanks appreciate you investigating this. I've set a breakpoint on the last line in pandas before it core dumps. After this it goes into numpy
In : import pandas
In : import pdb
In : import datetime
In : import numpy as np
In : rng = pandas.date_range('1/2/2005', '11/1/2010', freq='D', tz='US/Eastern')
In : ts = pandas.Series(np.random.randn(len(rng)), index=rng)
In : pdb.run('ts.truncate(datetime.datetime(2009,1,1), datetime.datetime(2011,1,1)).resample("D", how="sum")')
Looks like the args passed in when specifying at least US/Eastern.
Tried this with GMT and the len of all the args match similar to passing no TZ. So seems like it's also TZ specific. Maybe something with daylight savings?