Open
Description
Pandas version checks
-
I have checked that this issue has not already been reported.
-
I have confirmed this bug exists on the latest version of pandas.
-
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
To reproduce it:
import numpy as np
import pandas as pd
df = pd.DataFrame({'a': [1, 2, 3]})
lst = np.split(df, 3)
Issue Description
The above code raises a FutureWarning:
FutureWarning: 'DataFrame.swapaxes' is deprecated and will be removed in a future version. Please use 'DataFrame.transpose' instead.
As far as I understand, np.split
uses np.swapaxes
which is raising this warning.
Expected Behavior
Not show a warning.
Installed Versions
python : 3.11.5
pandas : 2.2.0
numpy : 1.26.3