-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: nested dict construction timedelta #11129
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
Comments
Are you sure you meant to reference #11115 (Interpolate erroneously fills NaNs at beginning of sequence when limit_direction == 'both') on this issue? |
Sorry, wrong issue. Edited above, thanks! |
@chris-b1 yep this prob need just a change to |
FYI, this actually works for |
what exactly is not matching for the hash of a |
right now the
I tried changing the hash definition as below, patterned after
|
hmm, try that. (hash change looks ok). But I think we also need the change to |
We should definitely match the timedelta hash on our subclass. I would consider that also a bug. |
BUG: nested construction with timedelta #11129
* commit 'v0.17.0rc1-92-gc6bcc99': (29 commits) CI: tests latest versions of openpyxl COMPAT: openpyxl >= 2.2 support, pandas-dev#10125 Tests demonstrating how to use sqlalchemy.text() objects in read_sql() TST: Capture warnings in _check_plot_works COMPAT/BUG: color handling in scatter COMPAT: Support for matplotlib 1.5 ERR/API: Raise NotImplementedError when Panel operator function is not implemented, pandas-dev#7692 DOC: minor doc formatting fixes PERF: nested dict DataFrame construction DEPR: deprecate SparsePanel BLD: dateutil->python-dateutil in conda recipe BUG/API: GH11086 where freq is not inferred if both freq is None ENH: add merge indicator to DataFrame.merge PERF: improves performance in groupby.size BUG: DatetimeTZBlock.fillna raises TypeError PERF: infer_datetime_format without padding pandas-dev#11142 PERF: improves performance in SeriesGroupBy.transform TST: Verify fix for buffer overflow in read_csv with engine='c' (GH pandas-dev#9735) DEPR: Series.is_timeseries BUG: nested construction with timedelta pandas-dev#11129 ...
Related to #10160 / PR #10269
This seems to happen because
Timedelta
doesn't have hash equality withdatetime.timedelta
It could easily be worked around here, but I was wondering if there's any reason not to makeTimedelta
work likeTimestamp
and match hashes if above a certain resolution?The text was updated successfully, but these errors were encountered: