Skip to content
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

activepatch returns df with MultiIndex instead of the expected DatetimeIndex #362

Open
lochhh opened this issue May 31, 2024 · 0 comments
Open

Comments

@lochhh
Copy link
Contributor

lochhh commented May 31, 2024

return in_wheel.groupby(epochs).apply(lambda x: x.cumsum()) > 0

Since pandas version 2.0.0: group_keys now defaults to True. By default group keys are not included when the result’s index (and column) labels match the inputs, but in this case, the result has MultiIndex([(0, '2021-06-21 08:00:40.888351917')...]), rather than DatetimeIndex(['2021-06-21 08:00:40.888351917',...]) of the input, so we need to specify group_keys=False.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant