Skip to content

Commit b82e02f

Browse files
committed
Fix entry in v1.0
1 parent 39b4294 commit b82e02f

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
@@ -78,9 +78,9 @@ Backwards incompatible API changes
7878
String conversion of Series with nan
7979
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8080

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

83-
*pandas 0.25.x*
83+
*Previous behavior*:
8484

8585
.. code-block:: ipython
8686
@@ -90,7 +90,7 @@ String conversion of Series with nan
9090
1 nan
9191
dtype: object
9292
93-
*pandas 1.0.0*
93+
*New behavior*:
9494

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

0 commit comments

Comments
 (0)