Skip to content

Commit 9be087e

Browse files
jrebackischurov
authored andcommitted
DOC: doc changes in whatsnew 0.20.0
1 parent 4aee550 commit 9be087e

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

doc/source/whatsnew/v0.20.0.txt

+15-12
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ New features
2323
~~~~~~~~~~~~
2424

2525

26-
``dtype`` keyword for data io
26+
``dtype`` keyword for data IO
2727
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2828

29-
The ``dtype`` keyword argument in the :func:`read_csv` function for specifying the types of parsed columns
30-
is now supported with the ``'python'`` engine (:issue:`14295`). See the :ref:`io docs <io.dtypes>` for more information.
29+
The ``dtype`` keyword argument in the :func:`read_csv` function for specifying the types of parsed columns is now supported with the ``'python'`` engine (:issue:`14295`). See the :ref:`io docs <io.dtypes>` for more information.
3130

3231
.. ipython:: python
3332

@@ -44,14 +43,12 @@ fixed-width text files, and :func:`read_excel` for parsing Excel files.
4443
pd.read_fwf(StringIO(data)).dtypes
4544
pd.read_fwf(StringIO(data), dtype={'a':'float64', 'b':'object'}).dtypes
4645

47-
.. _whatsnew_0200.enhancements.other:
46+
.. _whatsnew_0200.enhancements.groupby_access:
4847

49-
Other enhancements
50-
^^^^^^^^^^^^^^^^^^
51-
- ``Series.sort_index`` accepts parameters ``kind`` and ``na_position`` (:issue:`13589`, :issue:`14444`)
48+
Groupby Enhancements
49+
^^^^^^^^^^^^^^^^^^^^
5250

53-
- ``pd.read_excel`` now preserves sheet order when using ``sheetname=None`` (:issue:`9930`)
54-
- Strings passed to ``DataFrame.groupby()`` as the ``by`` parameter may now reference either column names or index level names (:issue:`5677`)
51+
Strings passed to ``DataFrame.groupby()`` as the ``by`` parameter may now reference either column names or index level names (:issue:`5677`)
5552

5653
.. ipython:: python
5754

@@ -63,17 +60,25 @@ Other enhancements
6360
df = pd.DataFrame({'A': [1, 1, 1, 1, 2, 2, 3, 3],
6461
'B': np.arange(8)},
6562
index=index)
63+
df
6664

6765
df.groupby(['second', 'A']).sum()
6866

6967

68+
.. _whatsnew_0200.enhancements.other:
69+
70+
Other enhancements
71+
^^^^^^^^^^^^^^^^^^
72+
- ``Series.sort_index`` accepts parameters ``kind`` and ``na_position`` (:issue:`13589`, :issue:`14444`)
73+
74+
- ``pd.read_excel`` now preserves sheet order when using ``sheetname=None`` (:issue:`9930`)
7075
- Multiple offset aliases with decimal points are now supported (e.g. '0.5min' is parsed as '30s') (:issue:`8419`)
7176

7277
- New ``UnsortedIndexError`` (subclass of ``KeyError``) raised when indexing/slicing into an
7378
unsorted MultiIndex (:issue:`11897`). This allows differentiation between errors due to lack
7479
of sorting or an incorrect key. See :ref:`here <advanced.unsorted>`
7580

76-
- ``pd.cut`` and ``pd.qcut`` now support datetime64 and timedelta64 dtypes (issue:`14714`)
81+
- ``pd.cut`` and ``pd.qcut`` now support datetime64 and timedelta64 dtypes (:issue:`14714`)
7782
- ``Series`` provides a ``to_excel`` method to output Excel files (:issue:`8825`)
7883
- The ``usecols`` argument in ``pd.read_csv`` now accepts a callable function as a value (:issue:`14154`)
7984
- ``pd.DataFrame.plot`` now prints a title above each subplot if ``suplots=True`` and ``title`` is a list of strings (:issue:`14753`)
@@ -98,8 +103,6 @@ Backwards incompatible API changes
98103
Other API Changes
99104
^^^^^^^^^^^^^^^^^
100105

101-
- Change error message text when indexing via a
102-
boolean ``Series`` that has an incompatible index (:issue:`14491`)
103106

104107
.. _whatsnew_0200.deprecations:
105108

0 commit comments

Comments
 (0)