Skip to content

Commit 5b97367

Browse files
Merge pull request pandas-dev#10600 from jorisvandenbossche/doc-whatsnew-fixes
DOC: some formatting fixes in whatsnew
2 parents 0c19941 + f1598d3 commit 5b97367

File tree

2 files changed

+29
-26
lines changed

2 files changed

+29
-26
lines changed

doc/source/whatsnew/v0.11.0.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ Conversion
103103
Mixed Conversion
104104

105105
.. ipython:: python
106+
:okwarning:
106107

107108
df3['D'] = '1.'
108109
df3['E'] = '1'
@@ -116,6 +117,7 @@ Mixed Conversion
116117
Forcing Date coercion (and setting ``NaT`` when not datelike)
117118

118119
.. ipython:: python
120+
:okwarning:
119121

120122
from datetime import datetime
121123
s = Series([datetime(2001,1,1,0,0), 'foo', 1.0, 1,
@@ -328,4 +330,3 @@ Enhancements
328330
See the :ref:`full release notes
329331
<release>` or issue tracker
330332
on GitHub for a complete list.
331-

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
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -278,6 +279,7 @@ Performance Improvements
278279
- Improved performance of ``Series.isin`` for datetimelike/integer Series (:issue:`10287`)
279280
- 20x improvement in ``concat`` of Categoricals when categories are identical (:issue:`10587`)
280281

282+
281283
.. _whatsnew_0170.bug_fixes:
282284

283285
Bug Fixes

0 commit comments

Comments
 (0)