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
Previously, declaring or converting to :class:`StringDtype` was in general only possible if the data was already only ``str`` or nan-like (:issue:`31204`).
22
+
:class:`StringDtype` now works in all situations where ``astype(str)`` or ``dtype=str`` work:
23
+
24
+
For example, the below now works:
25
+
26
+
.. ipython:: python
27
+
28
+
ser = pd.Series([1, "abc", np.nan], dtype="string")
0 commit comments