Skip to content

Specifying fill_value in pd.Series.eq() with 'string' dtype #1797

Description

@geoffrey-eisenbarth

Right now I see the pandas docs show that fill_value should be None or float value, but if the Series has dtype 'string', then using a string value works as expected (although mypy obviously balks).

I know this is kind of a pandas issue too; I tried navigating the pandas issue tracker for something mentioning it and found this: pandas-dev/pandas#15533. I got a little lost trying to parse everything in the issue, so I'm a little unsure of where this stands; would a pandas doc PR be sufficient for now? Should pandas-stubs support passing a string to fill_value?

I'm happy to put together any necessary PRs here or for docs in the pandas repo if it's agreed upon that this is the correct approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions