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

np.array_split on pd.Series causing unavoidable deprecation warnings for Series.swapaxes #9

Closed
Rick-OConnor opened this issue Apr 10, 2024 · 2 comments

Comments

@Rick-OConnor
Copy link

As reported in this issue on from numpy, the use of np.array_split on a pandas object results in an unavoidable

FutureWarning: 'Series.swapaxes' is deprecated and will be removed in a future version. Please use 'Series.transpose' instead.

This reply in the issue thread suggest an alternative solution to np.array_split, relying on iloc instead.

@mbaak
Copy link
Contributor

mbaak commented Apr 17, 2024

Thanks, I'll update this in the next patch release.

@mbaak
Copy link
Contributor

mbaak commented Apr 22, 2024

Resolved with v2.1.0.

@mbaak mbaak closed this as completed Apr 22, 2024
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

2 participants