Skip to content

Commit 95a90e0

Browse files
DOC: some formatting fixes in whatsnew
1 parent c740bb0 commit 95a90e0

File tree

1 file changed

+27
-25
lines changed

1 file changed

+27
-25
lines changed

doc/source/whatsnew/v0.17.0.txt

+27-25
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,20 @@ Other enhancements
8686
Backwards incompatible API changes
8787
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8888

89+
.. _whatsnew_0170.api_breaking.convert_objects:
90+
8991
Changes to convert_objects
9092
^^^^^^^^^^^^^^^^^^^^^^^^^^
9193

92-
.. _whatsnew_0170.api_breaking.convert_objects:
93-
9494
- ``DataFrame.convert_objects`` keyword arguments have been shortened. (:issue:`10265`)
9595

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+
===================== =============
103103

104104
- Coercing types with ``DataFrame.convert_objects`` is now implemented using the
105105
keyword argument ``coerce=True``. Previously types were coerced by setting a
@@ -152,14 +152,19 @@ Old New
152152
to do nothing, and so it is necessary to pass at least one conversion target
153153
in the method call.
154154

155+
.. _whatsnew_0170.api_breaking.other:
156+
157+
Other API Changes
158+
^^^^^^^^^^^^^^^^^
159+
155160
- Operator equal on Index should behavior similarly to Series (:issue:`9947`)
156161

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``.
159164

160-
Previous behavior:
165+
Previous behavior:
161166

162-
.. code-block:: python
167+
.. code-block:: python
163168

164169
In [2]: pd.Index([1, 2, 3]) == pd.Index([1, 4, 5])
165170
Out[2]: array([ True, False, False], dtype=bool)
@@ -183,9 +188,9 @@ Previous behavior:
183188
In [7]: pd.Series([1, 2, 3]) == pd.Series([1, 2])
184189
ValueError: Series lengths must match to compare
185190

186-
New behavior:
191+
New behavior:
187192

188-
.. code-block:: python
193+
.. code-block:: python
189194

190195
In [8]: pd.Index([1, 2, 3]) == pd.Index([1, 4, 5])
191196
Out[8]: array([ True, False, False], dtype=bool)
@@ -209,23 +214,19 @@ New behavior:
209214
In [13]: pd.Series([1, 2, 3]) == pd.Series([1, 2])
210215
ValueError: Series lengths must match to compare
211216

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:
214219

215-
.. ipython:: python
220+
.. ipython:: python
216221

217222
np.array([1, 2, 3]) == np.array([1])
218223

219-
or it can return False if broadcasting can not be done:
224+
or it can return False if broadcasting can not be done:
220225

221-
.. ipython:: python
226+
.. ipython:: python
222227

223228
np.array([1, 2, 3]) == np.array([1, 2])
224229

225-
.. _whatsnew_0170.api_breaking.other:
226-
227-
Other API Changes
228-
^^^^^^^^^^^^^^^^^
229230
- Enable writing Excel files in :ref:`memory <_io.excel_writing_buffer>` using StringIO/BytesIO (:issue:`7074`)
230231
- Enable serialization of lists and dicts to strings in ExcelWriter (:issue:`8188`)
231232
- Allow passing `kwargs` to the interpolation methods (:issue:`10378`).
@@ -265,8 +266,8 @@ as well as the ``.sum()`` operation.
265266

266267
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.
267268

268-
.. _whatsnew_0170.performance:
269269

270+
.. _whatsnew_0170.performance:
270271

271272
Performance Improvements
272273
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -277,6 +278,7 @@ Performance Improvements
277278
- Significantly improved performance of indexing ``MultiIndex`` with slicers (:issue:`10287`)
278279
- Improved performance of ``Series.isin`` for datetimelike/integer Series (:issue:`10287`)
279280

281+
280282
.. _whatsnew_0170.bug_fixes:
281283

282284
Bug Fixes

0 commit comments

Comments
 (0)