File tree 1 file changed +23
-1
lines changed
1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,28 @@ Backwards incompatible API changes
73
73
pd.arrays.IntervalArray.from_tuples([(0 , 1 ), (2 , 3 )])
74
74
75
75
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
+
76
98
.. _whatsnew_1000.api.other :
77
99
78
100
Other API changes
@@ -200,7 +222,7 @@ Indexing
200
222
Missing
201
223
^^^^^^^
202
224
203
- - When converting into string, :meth: ` Series.astype ` will keep `` np.nan `` as missing value ( :issue: ` 25353 `)
225
+ -
204
226
-
205
227
206
228
MultiIndex
You can’t perform that action at this time.
0 commit comments