Skip to content

BUG: DataFrame.corrwith raising for pyarrow-backed dtypes #52314

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

Merged
merged 2 commits into from
Mar 31, 2023

Conversation

lukemanley
Copy link
Member

Fixes the following:

import pandas as pd
import numpy as np

data = np.random.randn(100, 10)
df = pd.DataFrame(data, dtype="float64[pyarrow]")

df.corrwith(df)
NotImplementedError: <class 'pandas.core.arrays.arrow.array.ArrowExtensionArray'> does not support reshape as backed by a 1D pyarrow.ChunkedArray.

@lukemanley lukemanley added Bug Arrow pyarrow functionality labels Mar 31, 2023
@mroeschke mroeschke added this to the 2.1 milestone Mar 31, 2023
@mroeschke mroeschke merged commit 379f9c0 into pandas-dev:main Mar 31, 2023
@mroeschke
Copy link
Member

Thanks @lukemanley

topper-123 pushed a commit to topper-123/pandas that referenced this pull request Apr 1, 2023
…#52314)

* BUG: DataFrame.corrwith raising for pyarrow-backed dtypes

* whatsnew
@lukemanley lukemanley deleted the dataframe-corrwith-arrow branch April 18, 2023 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arrow pyarrow functionality Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants