Skip to content

Commit 7500218

Browse files
committed
DOC: whatsnew 0.21.0 edits
1 parent 4c498f8 commit 7500218

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

doc/source/whatsnew/v0.21.0.txt

+12-13
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ Other Enhancements
3131
^^^^^^^^^^^^^^^^^^
3232

3333
- The ``validate`` argument for :func:`merge` function now checks whether a merge is one-to-one, one-to-many, many-to-one, or many-to-many. If a merge is found to not be an example of specified merge type, an exception of type ``MergeError`` will be raised. For more, see :ref:`here <merging.validation>` (:issue:`16270`)
34-
- ``Series.to_dict()`` and ``DataFrame.to_dict()`` now support an ``into`` keyword which allows you to specify the ``collections.Mapping`` subclass that you would like returned. The default is ``dict``, which is backwards compatible. (:issue:`16122`)
35-
- ``RangeIndex.append`` now returns a ``RangeIndex`` object when possible (:issue:`16212`)
36-
- ``Series.rename_axis()`` and ``DataFrame.rename_axis()`` with ``inplace=True`` now return ``None`` while renaming the axis inplace. (:issue:`15704`)
37-
- :func:`to_pickle` has gained a ``protocol`` parameter (:issue:`16252`). By default, this parameter is set to `HIGHEST_PROTOCOL <https://docs.python.org/3/library/pickle.html#data-stream-format>`__
34+
- :func:`Series.to_dict` and :func:`DataFrame.to_dict` now support an ``into`` keyword which allows you to specify the ``collections.Mapping`` subclass that you would like returned. The default is ``dict``, which is backwards compatible. (:issue:`16122`)
35+
- :func:`RangeIndex.append` now returns a ``RangeIndex`` object when possible (:issue:`16212`)
36+
- :func:`Series.rename_axis` and :func:`DataFrame.rename_axis` with ``inplace=True`` now return ``None`` while renaming the axis inplace. (:issue:`15704`)
37+
- :func:`Series.to_pickle` and :func:`DataFrame.to_pickle` have gained a ``protocol`` parameter (:issue:`16252`). By default, this parameter is set to `HIGHEST_PROTOCOL <https://docs.python.org/3/library/pickle.html#data-stream-format>`__
3838
- :func:`api.types.infer_dtype` now infers decimals. (:issue:`15690`)
3939
- :func:`read_feather` has gained the ``nthreads`` parameter for multi-threaded operations (:issue:`16359`)
4040
- :func:`DataFrame.clip()` and :func:`Series.clip()` have gained an ``inplace`` argument. (:issue:`15388`)
4141
- :func:`crosstab` has gained a ``margins_name`` parameter to define the name of the row / column that will contain the totals when ``margins=True``. (:issue:`15972`)
42-
- :func:`Dataframe.select_dtypes` now accepts scalar values for include/exclude as well as list-like. (:issue:`16855`)
42+
- :func:`DataFrame.select_dtypes` now accepts scalar values for include/exclude as well as list-like. (:issue:`16855`)
4343

4444
.. _whatsnew_0210.api_breaking:
4545

@@ -92,22 +92,21 @@ the target. Now, a ``ValueError`` will be raised when such an input is passed in
9292
...
9393
ValueError: Cannot operate inplace if there is no assignment
9494

95+
.. _whatsnew_0210.api:
96+
97+
Other API Changes
98+
^^^^^^^^^^^^^^^^^
99+
95100
- Support has been dropped for Python 3.4 (:issue:`15251`)
96101
- The Categorical constructor no longer accepts a scalar for the ``categories`` keyword. (:issue:`16022`)
97-
- Accessing a non-existent attribute on a closed :class:`HDFStore` will now
102+
- Accessing a non-existent attribute on a closed :class:`~pandas.HDFStore` will now
98103
raise an ``AttributeError`` rather than a ``ClosedFileError`` (:issue:`16301`)
99104
- :func:`read_csv` now treats ``'null'`` strings as missing values by default (:issue:`16471`)
100105
- :func:`read_csv` now treats ``'n/a'`` strings as missing values by default (:issue:`16078`)
101106
- :class:`pandas.HDFStore`'s string representation is now faster and less detailed. For the previous behavior, use ``pandas.HDFStore.info()``. (:issue:`16503`).
102107
- Compression defaults in HDF stores now follow pytable standards. Default is no compression and if ``complib`` is missing and ``complevel`` > 0 ``zlib`` is used (:issue:`15943`)
103108
- ``Index.get_indexer_non_unique()`` now returns a ndarray indexer rather than an ``Index``; this is consistent with ``Index.get_indexer()`` (:issue:`16819`)
104109
- Removed the ``@slow`` decorator from ``pandas.util.testing``, which caused issues for some downstream packages' test suites. Use ``@pytest.mark.slow`` instead, which achieves the same thing (:issue:`16850`)
105-
106-
.. _whatsnew_0210.api:
107-
108-
Other API Changes
109-
^^^^^^^^^^^^^^^^^
110-
111110
- Moved definition of ``MergeError`` to the ``pandas.errors`` module.
112111

113112

@@ -127,7 +126,7 @@ Removal of prior version deprecations/changes
127126
- The ``pd.options.display.mpl_style`` configuration has been dropped (:issue:`12190`)
128127
- ``Index`` has dropped the ``.sym_diff()`` method in favor of ``.symmetric_difference()`` (:issue:`12591`)
129128
- ``Categorical`` has dropped the ``.order()`` and ``.sort()`` methods in favor of ``.sort_values()`` (:issue:`12882`)
130-
- :func:`eval` and :method:`DataFrame.eval` have changed the default of ``inplace`` from ``None`` to ``False`` (:issue:`11149`)
129+
- :func:`eval` and :func:`DataFrame.eval` have changed the default of ``inplace`` from ``None`` to ``False`` (:issue:`11149`)
131130
- The function ``get_offset_name`` has been dropped in favor of the ``.freqstr`` attribute for an offset (:issue:`11834`)
132131

133132

0 commit comments

Comments
 (0)