pandas-dev / pandas

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
https://pandas.pydata.org
BSD 3-Clause "New" or "Revised" License
43.86k stars 18.01k forks source link

[backport 2.3.x] BUG (string dtype): let fillna with invalid value upcast to object dtype (#60296) #60316

Closed jorisvandenbossche closed 1 week ago

jorisvandenbossche commented 1 week ago

(cherry picked from commit 34c39e9078ea8af12871a92bdcea2058553c9869)

Backport of https://github.com/pandas-dev/pandas/pull/60296