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.17.0.txt
+27-25
Original file line number
Diff line number
Diff line change
@@ -86,20 +86,20 @@ Other enhancements
86
86
Backwards incompatible API changes
87
87
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
88
88
89
+
.. _whatsnew_0170.api_breaking.convert_objects:
90
+
89
91
Changes to convert_objects
90
92
^^^^^^^^^^^^^^^^^^^^^^^^^^
91
93
92
-
.. _whatsnew_0170.api_breaking.convert_objects:
93
-
94
94
- ``DataFrame.convert_objects`` keyword arguments have been shortened. (:issue:`10265`)
95
95
96
-
===================== =============
97
-
Old New
98
-
===================== =============
99
-
``convert_dates`` ``datetime``
100
-
``convert_numeric`` ``numeric``
101
-
``convert_timedelta`` ``timedelta``
102
-
===================== =============
96
+
===================== =============
97
+
Old New
98
+
===================== =============
99
+
``convert_dates`` ``datetime``
100
+
``convert_numeric`` ``numeric``
101
+
``convert_timedelta`` ``timedelta``
102
+
===================== =============
103
103
104
104
- Coercing types with ``DataFrame.convert_objects`` is now implemented using the
105
105
keyword argument ``coerce=True``. Previously types were coerced by setting a
@@ -152,14 +152,19 @@ Old New
152
152
to do nothing, and so it is necessary to pass at least one conversion target
153
153
in the method call.
154
154
155
+
.. _whatsnew_0170.api_breaking.other:
156
+
157
+
Other API Changes
158
+
^^^^^^^^^^^^^^^^^
159
+
155
160
- Operator equal on Index should behavior similarly to Series (:issue:`9947`)
156
161
157
-
Starting in v0.17.0, comparing ``Index`` objects of different lengths will raise
158
-
a ``ValueError``. This is to be consistent with the behavior of ``Series``.
162
+
Starting in v0.17.0, comparing ``Index`` objects of different lengths will raise
163
+
a ``ValueError``. This is to be consistent with the behavior of ``Series``.
159
164
160
-
Previous behavior:
165
+
Previous behavior:
161
166
162
-
.. code-block:: python
167
+
.. code-block:: python
163
168
164
169
In [2]: pd.Index([1, 2, 3]) == pd.Index([1, 4, 5])
165
170
Out[2]: array([ True, False, False], dtype=bool)
@@ -183,9 +188,9 @@ Previous behavior:
183
188
In [7]: pd.Series([1, 2, 3]) == pd.Series([1, 2])
184
189
ValueError: Series lengths must match to compare
185
190
186
-
New behavior:
191
+
New behavior:
187
192
188
-
.. code-block:: python
193
+
.. code-block:: python
189
194
190
195
In [8]: pd.Index([1, 2, 3]) == pd.Index([1, 4, 5])
191
196
Out[8]: array([ True, False, False], dtype=bool)
@@ -209,23 +214,19 @@ New behavior:
209
214
In [13]: pd.Series([1, 2, 3]) == pd.Series([1, 2])
210
215
ValueError: Series lengths must match to compare
211
216
212
-
Note that this is different from the ``numpy`` behavior where a comparison can
213
-
be broadcast:
217
+
Note that this is different from the ``numpy`` behavior where a comparison can
218
+
be broadcast:
214
219
215
-
.. ipython:: python
220
+
.. ipython:: python
216
221
217
222
np.array([1, 2, 3]) == np.array([1])
218
223
219
-
or it can return False if broadcasting can not be done:
224
+
or it can return False if broadcasting can not be done:
220
225
221
-
.. ipython:: python
226
+
.. ipython:: python
222
227
223
228
np.array([1, 2, 3]) == np.array([1, 2])
224
229
225
-
.. _whatsnew_0170.api_breaking.other:
226
-
227
-
Other API Changes
228
-
^^^^^^^^^^^^^^^^^
229
230
- Enable writing Excel files in :ref:`memory <_io.excel_writing_buffer>` using StringIO/BytesIO (:issue:`7074`)
230
231
- Enable serialization of lists and dicts to strings in ExcelWriter (:issue:`8188`)
231
232
- Allow passing `kwargs` to the interpolation methods (:issue:`10378`).
@@ -265,8 +266,8 @@ as well as the ``.sum()`` operation.
265
266
266
267
Releasing of the GIL could benefit an application that uses threads for user interactions (e.g. ``QT``), or performaning multi-threaded computations. A nice example of a library that can handle these types of computation-in-parallel is the dask_ library.
267
268
268
-
.. _whatsnew_0170.performance:
269
269
270
+
.. _whatsnew_0170.performance:
270
271
271
272
Performance Improvements
272
273
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -278,6 +279,7 @@ Performance Improvements
278
279
- Improved performance of ``Series.isin`` for datetimelike/integer Series (:issue:`10287`)
279
280
- 20x improvement in ``concat`` of Categoricals when categories are identical (:issue:`10587`)
0 commit comments