-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Implement ExtensionArray _accumulate and _reduce #850
Comments
While they look very much private, they are documented: |
Agreed. PR with tests welcome |
I'm glad to see its a simple case, but alas, it's just beyond my level of |
I can not see any |
I would add something to |
I have added in core/arrays/base.pyi def _reduce(self, name: str, *, skipna: bool=..., keepdims: bool=... , **kwargs) -> Scalar: ...
def _accumulate(self, name: str, *, skipna: bool=..., **kwargs) -> Self: ... But now I am facing issues with tests:
not sure about the |
I had another recent case in dealing with I'm fine if we don't include a test for this, and just add the declarations for the 2 functions. As for the def _reduce(self, name: str, *, skipna: bool=..., keepdims: bool=... , **kwargs) -> object: ... You may have to change Agree this is not a good first issue any more, but I think you can do it! |
Describe the bug
The stubs for ExtensionArray (in
pandas-stubs/core/arrays/base.pyi
) does not provide type signatures for _accumulate and _reduce. To properly add typing information to the Pint-Pandas project, these need to be defined.To Reproduce
mypy
Note that running the script in python works, because it uses actual Pandas code, not Pandas-Stubs:
Please complete the following information:
pandas-stubs
: 2.1.4.231227Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: