-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Open
Labels
BlockerBlocking issue or pull request for an upcoming releaseBlocking issue or pull request for an upcoming releaseCompatpandas objects compatability with Numpy or Python functionspandas objects compatability with Numpy or Python functionsDeprecateFunctionality to remove in pandasFunctionality to remove in pandasRegressionFunctionality that used to work in a prior pandas versionFunctionality that used to work in a prior pandas version
Milestone
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
Metadata
Metadata
Assignees
Labels
BlockerBlocking issue or pull request for an upcoming releaseBlocking issue or pull request for an upcoming releaseCompatpandas objects compatability with Numpy or Python functionspandas objects compatability with Numpy or Python functionsDeprecateFunctionality to remove in pandasFunctionality to remove in pandasRegressionFunctionality that used to work in a prior pandas versionFunctionality that used to work in a prior pandas version