You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cat = pd.Categorical(["A", "B", None, "A"])
ser = pd.Series(cat).fillna("B")
>>> filled = cat.fillna(ser) # <-- works
>>> cat.fillna(filled)
TypeError: 'value' parameter must be a scalar, dict or Series, but you passed a Categorical