We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
>>> df = pd.DataFrame({"a": ["a"] * 3, "b": pd.Series([None] * 3, dtype=pd.StringDtype(na_value=np.nan))}) >>> df a b 0 a NaN 1 a NaN 2 a NaN >>> df.groupby("a").sum() b a a 0 >>> df.groupby("a").sum().dtypes b str dtype: object >>> df.groupby("a").min() b a a NaN >>> df.groupby("a").min().dtypes b float64 dtype: object
The sum reduction return type is partially discussed in #60229 but I didn't see anything for min
min
Note that this discrepancy is the root cause of the test failure shown at
pandas/pandas/tests/resample/test_resampler_grouper.py
Line 465 in dec6eb2
@rhshadrach
I think in all cases here we should still be returning a str type.
str
'3.0.0.dev0+1824.g8d6d29cac3.dirty'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
Issue Description
The sum reduction return type is partially discussed in #60229 but I didn't see anything for
min
Note that this discrepancy is the root cause of the test failure shown at
pandas/pandas/tests/resample/test_resampler_grouper.py
Line 465 in dec6eb2
@rhshadrach
Expected Behavior
I think in all cases here we should still be returning a
str
type.Installed Versions
'3.0.0.dev0+1824.g8d6d29cac3.dirty'
The text was updated successfully, but these errors were encountered: