Skip to content

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