We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There seem to be some incompatibilities with timezones and timestamps in 0.17.1.
For example, here I'm trying to clip a timezone-aware column with a timezone-aware timestamp:
In [224]: import pandas In [225]: u = pandas.Timestamp('2015-12-01 09:30:30', tz='US/Eastern') In [226]: print u 2015-12-01 09:30:30-05:00 In [227]: df = pandas.DataFrame({ 'foo' : [ pandas.Timestamp('2015-12-01 09:30:00', tz='US/Eastern'), pandas.Timestamp('2015-12-01 09:31:00', tz='US/Eastern') ] }) In [228]: print df foo 0 2015-12-01 09:30:00-05:00 1 2015-12-01 09:31:00-05:00 In [229]: df['foo'].clip(upper=u) TypeError: Could not compare [Timestamp('2015-12-01 09:30:30-0500', tz='US/Eastern')] with block values
This code used to work on 0.16.2.
The text was updated successfully, but these errors were encountered:
yep, a buggie. pull-requests to remedy are welcomed.
Sorry, something went wrong.
REGR: Regression in .clip with tz-aware datetimes pandas-dev#11838
1880400
Merge pull request #11850 from jreback/clip
d173946
REGR: Regression in .clip with tz-aware datetimes #11838
Successfully merging a pull request may close this issue.
There seem to be some incompatibilities with timezones and timestamps in 0.17.1.
For example, here I'm trying to clip a timezone-aware column with a timezone-aware timestamp:
This code used to work on 0.16.2.
The text was updated successfully, but these errors were encountered: