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

Use of np.array_split causes warning that can be avoided #2730

Closed
nabelekt opened this issue Mar 14, 2024 · 0 comments · Fixed by #2735
Closed

Use of np.array_split causes warning that can be avoided #2730

nabelekt opened this issue Mar 14, 2024 · 0 comments · Fixed by #2735
Labels
enhancement New feature or request

Comments

@nabelekt
Copy link

nabelekt commented Mar 14, 2024

Describe the bug

The split_pandas_frame function in _utils.py, called by awswrangler.timestream.write, calls np.array_split resulting in this warning:

/usr/local/lib/python3.11/dist-packages/numpy/core/fromnumeric.py:59: FutureWarning: 'DataFrame.swapaxes' is deprecated and will be removed in a future version. Please use 'DataFrame.transpose' instead.

np.array_split should no longer be used with dataframes. Please see here: numpy/numpy#24889 (comment)

How to Reproduce

Call awswrangler.timestream.write()

Expected behavior

No response

Your project

No response

Screenshots

No response

OS

Linux

Python version

3.11.7

AWS SDK for pandas version

3.7.1

Additional context

No response

@nabelekt nabelekt added the bug Something isn't working label Mar 14, 2024
@jaidisido jaidisido added enhancement New feature or request and removed bug Something isn't working labels Mar 14, 2024
@jaidisido jaidisido linked a pull request Mar 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants