Skip to content

Commit f34fd58

Browse files
DOC: move 'Other API changes' under correct section (pandas-dev#34817)
1 parent 1361d9a commit f34fd58

File tree

1 file changed

+110
-107
lines changed

1 file changed

+110
-107
lines changed

doc/source/whatsnew/v1.1.0.rst

+110-107
Original file line numberDiff line numberDiff line change
@@ -297,116 +297,10 @@ Other enhancements
297297

298298
.. ---------------------------------------------------------------------------
299299
300-
Increased minimum versions for dependencies
301-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
302-
303-
Some minimum supported versions of dependencies were updated (:issue:`33718`, :issue:`29766`, :issue:`29723`, pytables >= 3.4.3).
304-
If installed, we now require:
305-
306-
+-----------------+-----------------+----------+---------+
307-
| Package | Minimum Version | Required | Changed |
308-
+=================+=================+==========+=========+
309-
| numpy | 1.15.4 | X | X |
310-
+-----------------+-----------------+----------+---------+
311-
| pytz | 2015.4 | X | |
312-
+-----------------+-----------------+----------+---------+
313-
| python-dateutil | 2.7.3 | X | X |
314-
+-----------------+-----------------+----------+---------+
315-
| bottleneck | 1.2.1 | | |
316-
+-----------------+-----------------+----------+---------+
317-
| numexpr | 2.6.2 | | |
318-
+-----------------+-----------------+----------+---------+
319-
| pytest (dev) | 4.0.2 | | |
320-
+-----------------+-----------------+----------+---------+
321-
322-
For `optional libraries <https://dev.pandas.io/docs/install.html#dependencies>`_ the general recommendation is to use the latest version.
323-
The following table lists the lowest version per library that is currently being tested throughout the development of pandas.
324-
Optional libraries below the lowest tested version may still work, but are not considered supported.
325-
326-
+-----------------+-----------------+---------+
327-
| Package | Minimum Version | Changed |
328-
+=================+=================+=========+
329-
| beautifulsoup4 | 4.6.0 | |
330-
+-----------------+-----------------+---------+
331-
| fastparquet | 0.3.2 | |
332-
+-----------------+-----------------+---------+
333-
| gcsfs | 0.2.2 | |
334-
+-----------------+-----------------+---------+
335-
| lxml | 3.8.0 | |
336-
+-----------------+-----------------+---------+
337-
| matplotlib | 2.2.2 | |
338-
+-----------------+-----------------+---------+
339-
| numba | 0.46.0 | |
340-
+-----------------+-----------------+---------+
341-
| openpyxl | 2.5.7 | |
342-
+-----------------+-----------------+---------+
343-
| pyarrow | 0.13.0 | |
344-
+-----------------+-----------------+---------+
345-
| pymysql | 0.7.1 | |
346-
+-----------------+-----------------+---------+
347-
| pytables | 3.4.3 | X |
348-
+-----------------+-----------------+---------+
349-
| s3fs | 0.3.0 | |
350-
+-----------------+-----------------+---------+
351-
| scipy | 1.2.0 | X |
352-
+-----------------+-----------------+---------+
353-
| sqlalchemy | 1.1.4 | |
354-
+-----------------+-----------------+---------+
355-
| xarray | 0.8.2 | |
356-
+-----------------+-----------------+---------+
357-
| xlrd | 1.1.0 | |
358-
+-----------------+-----------------+---------+
359-
| xlsxwriter | 0.9.8 | |
360-
+-----------------+-----------------+---------+
361-
| xlwt | 1.2.0 | |
362-
+-----------------+-----------------+---------+
363-
| pandas-gbq | 1.2.0 | X |
364-
+-----------------+-----------------+---------+
365-
366-
See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for more.
367-
368-
Development Changes
369-
^^^^^^^^^^^^^^^^^^^
370-
371-
- The minimum version of Cython is now the most recent bug-fix version (0.29.16) (:issue:`33334`).
372-
373-
.. _whatsnew_110.api.other:
374-
375-
Other API changes
376-
^^^^^^^^^^^^^^^^^
377-
378-
- :meth:`Series.describe` will now show distribution percentiles for ``datetime`` dtypes, statistics ``first`` and ``last``
379-
will now be ``min`` and ``max`` to match with numeric dtypes in :meth:`DataFrame.describe` (:issue:`30164`)
380-
- Added :meth:`DataFrame.value_counts` (:issue:`5377`)
381-
- :meth:`Groupby.groups` now returns an abbreviated representation when called on large dataframes (:issue:`1135`)
382-
- ``loc`` lookups with an object-dtype :class:`Index` and an integer key will now raise ``KeyError`` instead of ``TypeError`` when key is missing (:issue:`31905`)
383-
- Using a :func:`pandas.api.indexers.BaseIndexer` with ``count``, ``min``, ``max``, ``median``, ``skew``, ``cov``, ``corr`` will now return correct results for any monotonic :func:`pandas.api.indexers.BaseIndexer` descendant (:issue:`32865`)
384-
- Added a :func:`pandas.api.indexers.FixedForwardWindowIndexer` class to support forward-looking windows during ``rolling`` operations.
385-
- Added :class:`pandas.errors.InvalidIndexError` (:issue:`34570`).
300+
.. _whatsnew_110.api:
386301

387302
Backwards incompatible API changes
388303
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
389-
- :meth:`DataFrame.swaplevels` now raises a ``TypeError`` if the axis is not a :class:`MultiIndex`.
390-
Previously an ``AttributeError`` was raised (:issue:`31126`)
391-
- :meth:`DataFrame.xs` now raises a ``TypeError`` if a ``level`` keyword is supplied and the axis is not a :class:`MultiIndex`.
392-
Previously an ``AttributeError`` was raised (:issue:`33610`)
393-
- :meth:`DataFrameGroupby.mean` and :meth:`SeriesGroupby.mean` (and similarly for :meth:`~DataFrameGroupby.median`, :meth:`~DataFrameGroupby.std` and :meth:`~DataFrameGroupby.var`)
394-
now raise a ``TypeError`` if a not-accepted keyword argument is passed into it.
395-
Previously a ``UnsupportedFunctionCall`` was raised (``AssertionError`` if ``min_count`` passed into :meth:`~DataFrameGroupby.median`) (:issue:`31485`)
396-
- :meth:`DataFrame.at` and :meth:`Series.at` will raise a ``TypeError`` instead of a ``ValueError`` if an incompatible key is passed, and ``KeyError`` if a missing key is passed, matching the behavior of ``.loc[]`` (:issue:`31722`)
397-
- Passing an integer dtype other than ``int64`` to ``np.array(period_index, dtype=...)`` will now raise ``TypeError`` instead of incorrectly using ``int64`` (:issue:`32255`)
398-
- Passing an invalid ``fill_value`` to :meth:`Categorical.take` raises a ``ValueError`` instead of ``TypeError`` (:issue:`33660`)
399-
- Combining a ``Categorical`` with integer categories and which contains missing values
400-
with a float dtype column in operations such as :func:`concat` or :meth:`~DataFrame.append`
401-
will now result in a float column instead of an object dtyped column (:issue:`33607`)
402-
- :meth:`Series.to_timestamp` now raises a ``TypeError`` if the axis is not a :class:`PeriodIndex`. Previously an ``AttributeError`` was raised (:issue:`33327`)
403-
- :meth:`Series.to_period` now raises a ``TypeError`` if the axis is not a :class:`DatetimeIndex`. Previously an ``AttributeError`` was raised (:issue:`33327`)
404-
- :func: `pandas.api.dtypes.is_string_dtype` no longer incorrectly identifies categorical series as string.
405-
- :func:`read_excel` no longer takes ``**kwds`` arguments. This means that passing in keyword ``chunksize`` now raises a ``TypeError``
406-
(previously raised a ``NotImplementedError``), while passing in keyword ``encoding`` now raises a ``TypeError`` (:issue:`34464`)
407-
- :func: `merge` now checks ``suffixes`` parameter type to be ``tuple`` and raises ``TypeError``, whereas before a ``list`` or ``set`` were accepted and that the ``set`` could produce unexpected results (:issue:`33740`)
408-
- :class:`Period` no longer accepts tuples for the ``freq`` argument (:issue:`34658`)
409-
- :meth:`Series.interpolate` and :meth:`DataFrame.interpolate` now raises ValueError if ``limit_direction`` is 'forward' or 'both' and ``method`` is 'backfill' or 'bfill' or ``limit_direction`` is 'backward' or 'both' and ``method`` is 'pad' or 'ffill' (:issue:`34746`)
410304

411305
``MultiIndex.get_indexer`` interprets `method` argument differently
412306
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -733,6 +627,115 @@ apply and applymap on ``DataFrame`` evaluates first row/column only once
733627
734628
df.apply(func, axis=1)
735629
630+
.. _whatsnew_110.api.other:
631+
632+
Other API changes
633+
^^^^^^^^^^^^^^^^^
634+
635+
- :meth:`Series.describe` will now show distribution percentiles for ``datetime`` dtypes, statistics ``first`` and ``last``
636+
will now be ``min`` and ``max`` to match with numeric dtypes in :meth:`DataFrame.describe` (:issue:`30164`)
637+
- Added :meth:`DataFrame.value_counts` (:issue:`5377`)
638+
- :meth:`Groupby.groups` now returns an abbreviated representation when called on large dataframes (:issue:`1135`)
639+
- ``loc`` lookups with an object-dtype :class:`Index` and an integer key will now raise ``KeyError`` instead of ``TypeError`` when key is missing (:issue:`31905`)
640+
- Using a :func:`pandas.api.indexers.BaseIndexer` with ``count``, ``min``, ``max``, ``median``, ``skew``, ``cov``, ``corr`` will now return correct results for any monotonic :func:`pandas.api.indexers.BaseIndexer` descendant (:issue:`32865`)
641+
- Added a :func:`pandas.api.indexers.FixedForwardWindowIndexer` class to support forward-looking windows during ``rolling`` operations.
642+
- Added :class:`pandas.errors.InvalidIndexError` (:issue:`34570`).
643+
- :meth:`DataFrame.swaplevels` now raises a ``TypeError`` if the axis is not a :class:`MultiIndex`.
644+
Previously an ``AttributeError`` was raised (:issue:`31126`)
645+
- :meth:`DataFrame.xs` now raises a ``TypeError`` if a ``level`` keyword is supplied and the axis is not a :class:`MultiIndex`.
646+
Previously an ``AttributeError`` was raised (:issue:`33610`)
647+
- :meth:`DataFrameGroupby.mean` and :meth:`SeriesGroupby.mean` (and similarly for :meth:`~DataFrameGroupby.median`, :meth:`~DataFrameGroupby.std` and :meth:`~DataFrameGroupby.var`)
648+
now raise a ``TypeError`` if a not-accepted keyword argument is passed into it.
649+
Previously a ``UnsupportedFunctionCall`` was raised (``AssertionError`` if ``min_count`` passed into :meth:`~DataFrameGroupby.median`) (:issue:`31485`)
650+
- :meth:`DataFrame.at` and :meth:`Series.at` will raise a ``TypeError`` instead of a ``ValueError`` if an incompatible key is passed, and ``KeyError`` if a missing key is passed, matching the behavior of ``.loc[]`` (:issue:`31722`)
651+
- Passing an integer dtype other than ``int64`` to ``np.array(period_index, dtype=...)`` will now raise ``TypeError`` instead of incorrectly using ``int64`` (:issue:`32255`)
652+
- Passing an invalid ``fill_value`` to :meth:`Categorical.take` raises a ``ValueError`` instead of ``TypeError`` (:issue:`33660`)
653+
- Combining a ``Categorical`` with integer categories and which contains missing values
654+
with a float dtype column in operations such as :func:`concat` or :meth:`~DataFrame.append`
655+
will now result in a float column instead of an object dtyped column (:issue:`33607`)
656+
- :meth:`Series.to_timestamp` now raises a ``TypeError`` if the axis is not a :class:`PeriodIndex`. Previously an ``AttributeError`` was raised (:issue:`33327`)
657+
- :meth:`Series.to_period` now raises a ``TypeError`` if the axis is not a :class:`DatetimeIndex`. Previously an ``AttributeError`` was raised (:issue:`33327`)
658+
- :func: `pandas.api.dtypes.is_string_dtype` no longer incorrectly identifies categorical series as string.
659+
- :func:`read_excel` no longer takes ``**kwds`` arguments. This means that passing in keyword ``chunksize`` now raises a ``TypeError``
660+
(previously raised a ``NotImplementedError``), while passing in keyword ``encoding`` now raises a ``TypeError`` (:issue:`34464`)
661+
- :func: `merge` now checks ``suffixes`` parameter type to be ``tuple`` and raises ``TypeError``, whereas before a ``list`` or ``set`` were accepted and that the ``set`` could produce unexpected results (:issue:`33740`)
662+
- :class:`Period` no longer accepts tuples for the ``freq`` argument (:issue:`34658`)
663+
- :meth:`Series.interpolate` and :meth:`DataFrame.interpolate` now raises ValueError if ``limit_direction`` is 'forward' or 'both' and ``method`` is 'backfill' or 'bfill' or ``limit_direction`` is 'backward' or 'both' and ``method`` is 'pad' or 'ffill' (:issue:`34746`)
664+
665+
666+
Increased minimum versions for dependencies
667+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
668+
669+
Some minimum supported versions of dependencies were updated (:issue:`33718`, :issue:`29766`, :issue:`29723`, pytables >= 3.4.3).
670+
If installed, we now require:
671+
672+
+-----------------+-----------------+----------+---------+
673+
| Package | Minimum Version | Required | Changed |
674+
+=================+=================+==========+=========+
675+
| numpy | 1.15.4 | X | X |
676+
+-----------------+-----------------+----------+---------+
677+
| pytz | 2015.4 | X | |
678+
+-----------------+-----------------+----------+---------+
679+
| python-dateutil | 2.7.3 | X | X |
680+
+-----------------+-----------------+----------+---------+
681+
| bottleneck | 1.2.1 | | |
682+
+-----------------+-----------------+----------+---------+
683+
| numexpr | 2.6.2 | | |
684+
+-----------------+-----------------+----------+---------+
685+
| pytest (dev) | 4.0.2 | | |
686+
+-----------------+-----------------+----------+---------+
687+
688+
For `optional libraries <https://dev.pandas.io/docs/install.html#dependencies>`_ the general recommendation is to use the latest version.
689+
The following table lists the lowest version per library that is currently being tested throughout the development of pandas.
690+
Optional libraries below the lowest tested version may still work, but are not considered supported.
691+
692+
+-----------------+-----------------+---------+
693+
| Package | Minimum Version | Changed |
694+
+=================+=================+=========+
695+
| beautifulsoup4 | 4.6.0 | |
696+
+-----------------+-----------------+---------+
697+
| fastparquet | 0.3.2 | |
698+
+-----------------+-----------------+---------+
699+
| gcsfs | 0.2.2 | |
700+
+-----------------+-----------------+---------+
701+
| lxml | 3.8.0 | |
702+
+-----------------+-----------------+---------+
703+
| matplotlib | 2.2.2 | |
704+
+-----------------+-----------------+---------+
705+
| numba | 0.46.0 | |
706+
+-----------------+-----------------+---------+
707+
| openpyxl | 2.5.7 | |
708+
+-----------------+-----------------+---------+
709+
| pyarrow | 0.13.0 | |
710+
+-----------------+-----------------+---------+
711+
| pymysql | 0.7.1 | |
712+
+-----------------+-----------------+---------+
713+
| pytables | 3.4.3 | X |
714+
+-----------------+-----------------+---------+
715+
| s3fs | 0.3.0 | |
716+
+-----------------+-----------------+---------+
717+
| scipy | 1.2.0 | X |
718+
+-----------------+-----------------+---------+
719+
| sqlalchemy | 1.1.4 | |
720+
+-----------------+-----------------+---------+
721+
| xarray | 0.8.2 | |
722+
+-----------------+-----------------+---------+
723+
| xlrd | 1.1.0 | |
724+
+-----------------+-----------------+---------+
725+
| xlsxwriter | 0.9.8 | |
726+
+-----------------+-----------------+---------+
727+
| xlwt | 1.2.0 | |
728+
+-----------------+-----------------+---------+
729+
| pandas-gbq | 1.2.0 | X |
730+
+-----------------+-----------------+---------+
731+
732+
See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for more.
733+
734+
Development Changes
735+
^^^^^^^^^^^^^^^^^^^
736+
737+
- The minimum version of Cython is now the most recent bug-fix version (0.29.16) (:issue:`33334`).
738+
736739

737740
.. _whatsnew_110.deprecations:
738741

0 commit comments

Comments
 (0)