Skip to content

Commit a7a60b7

Browse files
committed
DOC: update whatsnew, change test name
1 parent 649d303 commit a7a60b7

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

doc/source/whatsnew/v0.22.0.txt

+15-14
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,8 @@ New features
1717
-
1818
-
1919

20-
.. _whatsnew_0220.enhancements.other:
2120

22-
Other Enhancements
23-
^^^^^^^^^^^^^^^^^^
24-
25-
- Better support for :func:`Dataframe.style.to_excel` output with the ``xlsxwriter`` engine. (:issue:`16149`)
26-
- :func:`pandas.tseries.frequencies.to_offset` now accepts leading '+' signs e.g. '+1h'. (:issue:`18171`)
27-
- :func:`MultiIndex.unique` now supports the ``level=`` argument, to get unique values from a specific index level (:issue:`17896`)
28-
- :class:`pandas.io.formats.style.Styler` now has method ``hide_index()`` to determine whether the index will be rendered in ouptut (:issue:`14194`)
29-
- :class:`pandas.io.formats.style.Styler` now has method ``hide_columns()`` to determine whether columns will be hidden in output (:issue:`14194`)
30-
- Improved wording of ``ValueError`` raised in :func:`to_datetime` when ``unit=`` is passed with a non-convertible value (:issue:`14350`)
31-
- :func:`Series.fillna` now accepts a Series or a dict as a ``value`` for a categorical dtype (:issue:`17033`)
32-
- :func:`get_dummies` now supports ``dtype`` argument, see :ref:`here <whatsnew_0220.enhancements.get_dummies_dtype>` for more (:issue:`18330`)
33-
34-
.. _whatsnew_0220.enhancements.get_dummies_dtype
21+
.. _whatsnew_0210.enhancements.get_dummies_dtype:
3522

3623
``get_dummies`` now supports ``dtype`` argument
3724
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -44,6 +31,20 @@ The :func:`get_dummies` now accepts a ``dtype`` argument, which specifies a spec
4431
pd.get_dummies(df, columns=['c']).dtypes
4532
pd.get_dummies(df, columns=['c'], dtype=bool).dtypes
4633

34+
35+
.. _whatsnew_0220.enhancements.other:
36+
37+
Other Enhancements
38+
^^^^^^^^^^^^^^^^^^
39+
40+
- Better support for :func:`Dataframe.style.to_excel` output with the ``xlsxwriter`` engine. (:issue:`16149`)
41+
- :func:`pandas.tseries.frequencies.to_offset` now accepts leading '+' signs e.g. '+1h'. (:issue:`18171`)
42+
- :func:`MultiIndex.unique` now supports the ``level=`` argument, to get unique values from a specific index level (:issue:`17896`)
43+
- :class:`pandas.io.formats.style.Styler` now has method ``hide_index()`` to determine whether the index will be rendered in ouptut (:issue:`14194`)
44+
- :class:`pandas.io.formats.style.Styler` now has method ``hide_columns()`` to determine whether columns will be hidden in output (:issue:`14194`)
45+
- Improved wording of ``ValueError`` raised in :func:`to_datetime` when ``unit=`` is passed with a non-convertible value (:issue:`14350`)
46+
- :func:`Series.fillna` now accepts a Series or a dict as a ``value`` for a categorical dtype (:issue:`17033`)
47+
4748
.. _whatsnew_0220.api_breaking:
4849

4950
Backwards incompatible API changes

pandas/tests/reshape/test_reshape.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def effective_dtype(self, dtype):
239239
return np.uint8
240240
return dtype
241241

242-
def test_throws_on_dtype_object(self, df):
242+
def test_raises_on_dtype_object(self, df):
243243
with pytest.raises(ValueError):
244244
get_dummies(df, dtype='object')
245245

0 commit comments

Comments
 (0)