You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.21.0.txt
+34-36
Original file line number
Diff line number
Diff line change
@@ -134,72 +134,70 @@ Dtype Conversions
134
134
^^^^^^^^^^^^^^^^^
135
135
136
136
- Previously assignments, ``.where()`` and ``.fillna()`` with a ``bool`` assignment, would coerce to
137
-
same type (e.g. int / float), or raise for datetimelikes. These will now preseve the bools with ``object`` dtypes. (:issue:`16821`).
137
+
same the type (e.g. int / float), or raise for datetimelikes. These will now preseve the bools with ``object`` dtypes. (:issue:`16821`).
138
138
139
-
.. ipython:: python
139
+
.. ipython:: python
140
140
141
-
s = Series([1, 2, 3])
141
+
s = Series([1, 2, 3])
142
142
143
-
.. code-block:: python
143
+
.. code-block:: python
144
144
145
-
In [5]: s[1] = True
145
+
In [5]: s[1] = True
146
146
147
-
In [6]: s
148
-
Out[6]:
149
-
0 1
150
-
1 1
151
-
2 3
152
-
dtype: int64
147
+
In [6]: s
148
+
Out[6]:
149
+
0 1
150
+
1 1
151
+
2 3
152
+
dtype: int64
153
153
154
-
New Behavior
154
+
New Behavior
155
155
156
-
.. ipython:: python
156
+
.. ipython:: python
157
157
158
-
s[1] = True
159
-
s
158
+
s[1] = True
159
+
s
160
160
161
-
- Previously as assignment to a datetimelike with a non-datetimelike would coerce the
161
+
- Previously, as assignment to a datetimelike with a non-datetimelike would coerce the
162
162
non-datetime-like item being assigned (:issue:`14145`).
163
163
164
-
.. ipython:: python
164
+
.. ipython:: python
165
165
166
-
s = pd.Series([pd.Timestamp('2011-01-01'), pd.Timestamp('2012-01-01')])
166
+
s = pd.Series([pd.Timestamp('2011-01-01'), pd.Timestamp('2012-01-01')])
167
167
168
-
.. code-block:: python
168
+
.. code-block:: python
169
169
170
-
In [1]: s[1] = 1
170
+
In [1]: s[1] = 1
171
171
172
-
In [2]: s
173
-
Out[2]:
174
-
0 2011-01-01 00:00:00.000000000
175
-
1 1970-01-01 00:00:00.000000001
176
-
dtype: datetime64[ns]
172
+
In [2]: s
173
+
Out[2]:
174
+
0 2011-01-01 00:00:00.000000000
175
+
1 1970-01-01 00:00:00.000000001
176
+
dtype: datetime64[ns]
177
177
178
-
These now coerce to ``object`` dtype.
178
+
These now coerce to ``object`` dtype.
179
179
180
-
.. ipython:: python
180
+
.. ipython:: python
181
181
182
-
s[1] = 1
183
-
s
182
+
s[1] = 1
183
+
s
184
184
185
-
- Additional bug fixes w.r.t. dtype conversions.
186
-
187
-
- Inconsistent behavior in ``.where()`` with datetimelikes which would raise rather than coerce to ``object`` (:issue:`16402`)
188
-
- Bug in assignment against ``int64`` data with ``np.ndarray`` with ``float64`` dtype may keep ``int64`` dtype (:issue:`14001`)
185
+
- Inconsistent behavior in ``.where()`` with datetimelikes which would raise rather than coerce to ``object`` (:issue:`16402`)
186
+
- Bug in assignment against ``int64`` data with ``np.ndarray`` with ``float64`` dtype may keep ``int64`` dtype (:issue:`14001`)
189
187
190
188
.. _whatsnew_0210.api.na_changes:
191
189
192
190
NA naming Changes
193
191
^^^^^^^^^^^^^^^^^
194
192
195
-
In orde to promote more consistency among the pandas API, we have added additional top-level
193
+
In order to promote more consistency among the pandas API, we have added additional top-level
196
194
functions :func:`isna` and :func:`notna` that are aliases for :func:`isnull` and :func:`notnull`.
197
195
The naming scheme is now more consistent with methods like ``.dropna()`` and ``.fillna()``. Furthermore
198
196
in all cases where ``.isnull()`` and ``.notnull()`` methods are defined, these have additional methods
199
197
named ``.isna()`` and ``.notna()``, these are included for classes ``Categorical``,
200
198
``Index``, ``Series``, and ``DataFrame``. (:issue:`15001`).
201
199
202
-
The configuration option ``mode.use_inf_as_null``is deprecated, and ``mode.use_inf_as_na`` is added as a replacement.
200
+
The configuration option ``pd.options.mode.use_inf_as_null``is deprecated, and ``pd.options.mode.use_inf_as_na`` is added as a replacement.
203
201
204
202
.. _whatsnew_0210.api:
205
203
@@ -281,7 +279,7 @@ I/O
281
279
282
280
- Bug in :func:`read_csv` in which columns were not being thoroughly de-duplicated (:issue:`17060`)
283
281
- Bug in :func:`read_csv` in which non integer values for the header argument generated an unhelpful / unrelated error message (:issue:`16338`)
284
-
- Bug in :func:`read_csv` in which memory management issues in exception handling, under certain conditions, would cause the interpreter to segfault (:issue:`14696, :issue:`16798`).
282
+
- Bug in :func:`read_csv` in which memory management issues in exception handling, under certain conditions, would cause the interpreter to segfault (:issue:`14696`, :issue:`16798`).
285
283
- Bug in :func:`read_csv` when called with ``low_memory=False`` in which a CSV with at least one column > 2GB in size would incorrectly raise a ``MemoryError`` (:issue:`16798`).
286
284
- Bug in :func:`read_stata` where value labels could not be read when using an iterator (:issue:`16923`)
287
285
- Bug in :func:`read_html` where import check fails when run in multiple threads (:issue:`16928`)
0 commit comments