BUG: ValueError when calling groupby + fillna on StringDType column #40250
Labels
good first issue
Missing-data
np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Needs Tests
Unit test(s) needed to prevent regressions
Strings
String extension data type and string data
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Versions
pd.show_versions()
Description
When doing a groupby and then a fillna on a column of dtype StringDType, pandas throws a
ValueError: StringArray requires a sequence of strings or pandas.NA
. This does not seem to happen with other (extension) dtypes afaik.The error only occurs if there are still NAs left after the
fillna
. It does not occur without thegroupby
.Example
Edit: Updated pandas, still an issue in 1.2.3
The text was updated successfully, but these errors were encountered: