-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Truncate on series causes core dump when TZ is specified on index #9243
Comments
pls show pd.show_versions() |
here you go: In [99]: pandas.show_versions() INSTALLED VERSIONScommit: None pandas: 0.15.2 In [100]: |
odd, this works ok for me (on osx, but same versions of deps). Can you step thru the 2nd example and show where it cores? |
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 [1]: import pandas In [2]: import pdb In [3]: import datetime In [4]: import numpy as np In [5]: rng = pandas.date_range('1/2/2005', '11/1/2010', freq='D', tz='US/Eastern') In [6]: ts = pandas.Series(np.random.randn(len(rng)), index=rng) In [7]: 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. CORE DUMPS: WORKS: 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? |
I can confirm that for me it also totally broken (windows 7, python 2.7, pandas 0.15.2, pytz 2014.9) |
Hello
I am getting a core dump when truncating a series with a timezone specified on the index. Please see below:
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
Thanks
The text was updated successfully, but these errors were encountered: