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
I guess it's enough to change from dict to Mapping in the type signature, since it seems to work even if the argument is not a dict (for example if it's a MappingProxyType instance).
Alternative Solutions
I guess an alternative solution is just to type ignore the replace invocation.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
Currently the
replace
method ofSeries
allows onlydict
, but notMapping
inputs, as theDataFrame
one does.For example:
Feature Description
I guess it's enough to change from
dict
toMapping
in the type signature, since it seems to work even if the argument is not a dict (for example if it's aMappingProxyType
instance).Alternative Solutions
I guess an alternative solution is just to type ignore the replace invocation.
Additional Context
No response
The text was updated successfully, but these errors were encountered: