-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
ENH: Add Float128 support for groupby. #59483
Comments
I'm positive here, assuming the increase in wheel size is negligible. From a code standpoint, I do not think it would be much effort to expand to this case. |
Hello, Can this issue be assigned to me? Me and my college group are going to solve it for a college project. |
@RafaelGreg18 - sounds good, please see our contributing docs! In particular: https://pandas.pydata.org/docs/dev/development/contributing.html#finding-an-issue-to-contribute-to |
take |
Using Pandas 2.2.3, the snippet provided works just fine. This issue seems to be fixed already. |
@RafaelGreg18 - I'm still seeing this error on main. Can you post the output of
after running the example in the OP. |
It outputs float64 (should be float128, right?). Just a little note, I couldn't get np.float128 to work, only np.longdouble, but I think it's the same thing. |
Just noticed that doing:
Actually creates a float64 array, not a float128 one. Also, according to numpy's documentation: "np.float96 and np.float128 are provided for users who want specific padding. In spite of the names, np.float96 and np.float128 provide only as much precision as np.longdouble, that is, 80 bits on most x86 machines and 64 bits in standard Windows builds." Any tips on how to recreate the error? |
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
I wish to use
groupby()[].mean()
on a column withnp.float128
. However, that is not supported.Feature Description
results in this error message:
Alternative Solutions
Converting to numpy and back to pandas can work. But this is not as pleasant as pandas.
Additional Context
Environment:
OS: CentOS Linux 8
python 3.10.13
pandas 2.1.1
numpy 1.24.1
The text was updated successfully, but these errors were encountered: