Closed tritemio closed 4 years ago
Thanks. Duplicate of https://github.com/pandas-dev/pandas/issues/31204 I think.
@TomAugspurger, sorry I couldn't find the previous issue #31204. I'll comment there to add the roundtrip argument (Int -> string -> Int).
Code Sample, a copy-pastable example if possible
This code raises an error:
Problem description
Converting a nullable int to nullable string requires a double conversion:
Likewise, converting a nullable string to nullable int requires two steps:
Moreover, if the nullable string series has NAs, converting to a nullable int becomes much harder (I don't know if there is a simpler way):
Expected Output
I would be nice to directly convert from nullable int to nullable string and vice versa in one step.
I'd like for all the following conversions to work:
Output of
pd.show_versions()