We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cdd5b1 commit 1820165Copy full SHA for 1820165
doc/source/whatsnew/v1.0.0.rst
@@ -44,9 +44,9 @@ Backwards incompatible API changes
44
String conversion of Series with nan
45
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46
47
- 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`)
48
49
- *pandas 0.25.x*
+*Previous behavior*:
50
51
.. code-block:: ipython
52
@@ -56,7 +56,7 @@ String conversion of Series with nan
56
1 nan
57
dtype: object
58
59
-*pandas 1.0.0*
+*New behavior*:
60
61
.. ipython:: python
62
pd.Series(['foo', np.nan]).astype(str)
0 commit comments