You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pandas/tseries/resample.pyc in _resample_timestamps(self, kind)
306 axlabels.inferred_freq) == self.freq:
307 result = obj.copy()
--> 308 result.index = res_index
309 else:
310 result = obj.reindex(res_index, method=self.fill_method,
... (more stacks skipped) ...
ValueError: Length mismatch: Expected axis has 9 elements, new values have 8 elements
This appears to be a problem with the logic in TimeGrouper._resample_timestamps() lines 298 to 308, the error is being thrown on line 308. It looks like res_index is being set to the wrong thing but I'm not familiar enough with the code to know how to fix properly.
The text was updated successfully, but these errors were encountered:
I've got a DataFrame with a TimedeltaIndex that fails when I try to resample it to the same frequency.
Minimal working example
pandas versions
The error thrown is:
This appears to be a problem with the logic in
TimeGrouper._resample_timestamps()
lines 298 to 308, the error is being thrown on line 308. It looks like res_index is being set to the wrong thing but I'm not familiar enough with the code to know how to fix properly.The text was updated successfully, but these errors were encountered: