Skip to content

BUG: Cumprod failing with type float[pyarrow] #52085

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

Closed
3 tasks done
misantroop opened this issue Mar 20, 2023 · 1 comment · Fixed by #54574
Closed
3 tasks done

BUG: Cumprod failing with type float[pyarrow] #52085

misantroop opened this issue Mar 20, 2023 · 1 comment · Fixed by #54574
Labels
Arrow pyarrow functionality Bug Upstream issue Issue related to pandas dependency

Comments

@misantroop
Copy link

misantroop commented Mar 20, 2023

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

ser = pd.Series({
    1: 1.,
    2: 2.
})
ser = ser.astype('float[pyarrow]')
ser.cumprod()

Issue Description

Cumprod failing, issue or cumprod only meant to be used with np?

File ~/.pyenv/versions/3.10.6/lib/python3.10/site-packages/pandas/core/arrays/base.py:1406, in ExtensionArray._accumulate(self, name, skipna, **kwargs)
   1376 def _accumulate(
   1377     self, name: str, *, skipna: bool = True, **kwargs
   1378 ) -> ExtensionArray:
   1379     """
   1380     Return an ExtensionArray performing an accumulation operation.
   1381 
   (...)
   1404     NotImplementedError : subclass does not define accumulations
   1405     """
-> 1406     raise NotImplementedError(f"cannot perform {name} with type {self.dtype}")

NotImplementedError: cannot perform cumprod with type float[pyarrow]

Expected Behavior

Cumprod result.

Installed Versions

Built from latest from 4 hours ago (b5aec87)
@misantroop misantroop added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Mar 20, 2023
@phofl
Copy link
Member

phofl commented Mar 20, 2023

Hi, thanks for your report. This isn't implemented on the arrow side yet.

@phofl phofl added Arrow pyarrow functionality and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Mar 20, 2023
@mroeschke mroeschke added the Upstream issue Issue related to pandas dependency label Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arrow pyarrow functionality Bug Upstream issue Issue related to pandas dependency
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants