Skip to content

Commit 39b4294

Browse files
committed
Move the entry to API change section and make it prominent
1 parent 294dd2e commit 39b4294

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

doc/source/whatsnew/v1.0.0.rst

+23-1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,28 @@ Backwards incompatible API changes
7373
pd.arrays.IntervalArray.from_tuples([(0, 1), (2, 3)])
7474
7575
76+
.. _whatsnew_0250.api_breaking.series_string_conversion:
77+
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`)
82+
83+
*pandas 0.25.x*
84+
85+
.. code-block:: ipython
86+
87+
In [1]: pd.Series(['foo', np.nan]).astype(str)
88+
Out[2]:
89+
0 foo
90+
1 nan
91+
dtype: object
92+
93+
*pandas 1.0.0*
94+
95+
.. ipython:: python
96+
pd.Series(['foo', np.nan]).astype(str)
97+
7698
.. _whatsnew_1000.api.other:
7799

78100
Other API changes
@@ -200,7 +222,7 @@ Indexing
200222
Missing
201223
^^^^^^^
202224

203-
- When converting into string, :meth:`Series.astype` will keep ``np.nan`` as missing value (:issue:`25353`)
225+
-
204226
-
205227

206228
MultiIndex

0 commit comments

Comments
 (0)