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.
Right now I see the pandas docs show that
fill_valueshould beNone or float value, but if theSerieshas dtype'string', then using a string value works as expected (althoughmypyobviously 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.