Skip to content

Commit 1820165

Browse files
committed
Fix entry in v1.0
1 parent 2cdd5b1 commit 1820165

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/source/whatsnew/v1.0.0.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ Backwards incompatible API changes
4444
String conversion of Series with nan
4545
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4646

47-
When converting into string, :meth:`Series.astype` will not convert ``np.nan`` into string and keep it as missing value (:issue:`25353`)
47+
:meth:Series.astype(str) previously would coerce a np.nan to the string nan. Now pandas will preserve the missing value indicator (:issue:`25353`)
4848

49-
*pandas 0.25.x*
49+
*Previous behavior*:
5050

5151
.. code-block:: ipython
5252
@@ -56,7 +56,7 @@ String conversion of Series with nan
5656
1 nan
5757
dtype: object
5858
59-
*pandas 1.0.0*
59+
*New behavior*:
6060

6161
.. ipython:: python
6262
pd.Series(['foo', np.nan]).astype(str)

0 commit comments

Comments
 (0)