Skip to content

Commit ae3b228

Browse files
committed
DOC: some whatsnew edits
1 parent 69b5066 commit ae3b228

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

doc/source/whatsnew/v0.17.0.txt

+15-18
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Check the :ref:`API Changes <whatsnew_0170.api>` and :ref:`deprecations <whatsne
5151
New features
5252
~~~~~~~~~~~~
5353

54-
- ``merge`` now accepts the argument ``indicator`` which adds a Categorical-type column (by default called ``_merge``) to the output object that takes on the values:
54+
- ``merge`` now accepts the argument ``indicator`` which adds a Categorical-type column (by default called ``_merge``) to the output object that takes on the values (:issue:`8790`)
5555

5656
=================================== ================
5757
Observation Origin ``_merge`` value
@@ -61,18 +61,15 @@ New features
6161
Merge key in both frames ``both``
6262
=================================== ================
6363

64-
For more, see the :ref:`updated docs <merging.indicator>`
65-
6664
.. ipython:: python
6765

6866
df1 = pd.DataFrame({'col1':[0,1], 'col_left':['a','b']})
6967
df2 = pd.DataFrame({'col1':[1,2,2],'col_right':[2,2,2]})
7068
pd.merge(df1, df2, on='col1', how='outer', indicator=True)
7169

70+
For more, see the :ref:`updated docs <merging.indicator>`
7271

73-
74-
75-
- ``DataFrame`` has the ``nlargest`` and ``nsmallest`` methods (:issue:`10393`)
72+
- ``DataFrame`` has gained the ``nlargest`` and ``nsmallest`` methods (:issue:`10393`)
7673
- SQL io functions now accept a SQLAlchemy connectable. (:issue:`7877`)
7774
- Enable writing complex values to HDF stores when using table format (:issue:`10447`)
7875
- Enable reading gzip compressed files via URL, either by explicitly setting the compression parameter or by inferring from the presence of the HTTP Content-Encoding header in the response (:issue:`8685`)
@@ -85,14 +82,14 @@ For more, see the :ref:`updated docs <merging.indicator>`
8582

8683
- Round DataFrame to variable number of decimal places (:issue:`10568`).
8784

88-
.. ipython :: python
85+
.. ipython :: python
86+
87+
df = pd.DataFrame(np.random.random([3, 3]), columns=['A', 'B', 'C'],
88+
index=['first', 'second', 'third'])
89+
df
90+
df.round(2)
91+
df.round({'A': 0, 'C': 2})
8992

90-
df = pd.DataFrame(np.random.random([3, 3]), columns=['A', 'B', 'C'],
91-
index=['first', 'second', 'third'])
92-
df
93-
df.round(2)
94-
df.round({'A': 0, 'C': 2})
95-
9693
.. _whatsnew_0170.gil:
9794

9895
Releasing the GIL
@@ -193,10 +190,10 @@ See the :ref:`docs <io.sas>` for more details.
193190
Other enhancements
194191
^^^^^^^^^^^^^^^^^^
195192

196-
- `read_sql` and `to_sql` can accept database URI as con parameter (:issue:`10214`)
197-
- Enable `read_hdf` to be used without specifying a key when the HDF file contains a single dataset (:issue:`10443`)
193+
- ``pd.read_sql`` and ``to_sql`` can accept database URI as con parameter (:issue:`10214`)
194+
- Enable ``pd.read_hdf`` to be used without specifying a key when the HDF file contains a single dataset (:issue:`10443`)
198195
- Enable writing Excel files in :ref:`memory <_io.excel_writing_buffer>` using StringIO/BytesIO (:issue:`7074`)
199-
- Enable serialization of lists and dicts to strings in ExcelWriter (:issue:`8188`)
196+
- Enable serialization of lists and dicts to strings in ``ExcelWriter`` (:issue:`8188`)
200197
- Added functionality to use the ``base`` argument when resampling a ``TimeDeltaIndex`` (:issue:`10530`)
201198
- ``DatetimeIndex`` can be instantiated using strings contains ``NaT`` (:issue:`7599`)
202199
- The string parsing of ``to_datetime``, ``Timestamp`` and ``DatetimeIndex`` has been made consistent. (:issue:`7599`)
@@ -467,7 +464,7 @@ the original DataFrame with no conversion.
467464
0 a
468465
1 b
469466

470-
THe new behavior will convert all non-number-like strings to ``NaN``,
467+
The new behavior will convert all non-number-like strings to ``NaN``,
471468
when ``coerce=True`` is passed explicity.
472469

473470
.. ipython:: python
@@ -530,7 +527,7 @@ or it can return False if broadcasting can not be done:
530527
Changes to Boolean Comparisons vs. None
531528
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
532529

533-
Boolean comparisons of a ``Series`` vs ``None`` will now be equivalent to comparing with ``np.nan``, rather than raise ``TypeError``. xref (:issue:`1079`).
530+
Boolean comparisons of a ``Series`` vs ``None`` will now be equivalent to comparing with ``np.nan``, rather than raise ``TypeError``. (:issue:`1079`).
534531

535532
.. ipython:: python
536533

0 commit comments

Comments
 (0)