We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39b4294 commit b82e02fCopy full SHA for b82e02f
doc/source/whatsnew/v1.0.0.rst
@@ -78,9 +78,9 @@ Backwards incompatible API changes
78
String conversion of Series with nan
79
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
80
81
- When converting into string, :meth:`Series.astype` will not convert ``np.nan`` into string and keep it as missing value (:issue:`25353`)
+:meth:Series.astype(str) previously would coerce a np.nan to the string nan. Now pandas will preserve the missing value indicator (:issue:`25353`)
82
83
- *pandas 0.25.x*
+*Previous behavior*:
84
85
.. code-block:: ipython
86
@@ -90,7 +90,7 @@ String conversion of Series with nan
90
1 nan
91
dtype: object
92
93
-*pandas 1.0.0*
+*New behavior*:
94
95
.. ipython:: python
96
pd.Series(['foo', np.nan]).astype(str)
0 commit comments