Skip to content

Backport PR #48197 on branch 1.5.x (DOC: Cleanup 1.5 whatsnew) #48228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 71 additions & 17 deletions doc/source/whatsnew/v1.5.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ from_dummies

Added new function :func:`~pandas.from_dummies` to convert a dummy coded :class:`DataFrame` into a categorical :class:`DataFrame`.

Example::

.. ipython:: python

import pandas as pd
Expand Down Expand Up @@ -308,7 +306,7 @@ Other enhancements
- :meth:`DataFrame.rolling` and :meth:`Series.rolling` now support a ``step`` parameter with fixed-length windows (:issue:`15354`)
- Implemented a ``bool``-dtype :class:`Index`, passing a bool-dtype array-like to ``pd.Index`` will now retain ``bool`` dtype instead of casting to ``object`` (:issue:`45061`)
- Implemented a complex-dtype :class:`Index`, passing a complex-dtype array-like to ``pd.Index`` will now retain complex dtype instead of casting to ``object`` (:issue:`45845`)
- :class:`Series` and :class:`DataFrame` with ``IntegerDtype`` now supports bitwise operations (:issue:`34463`)
- :class:`Series` and :class:`DataFrame` with :class:`IntegerDtype` now supports bitwise operations (:issue:`34463`)
- Add ``milliseconds`` field support for :class:`.DateOffset` (:issue:`43371`)
- :meth:`DataFrame.reset_index` now accepts a ``names`` argument which renames the index names (:issue:`6878`)
- :func:`concat` now raises when ``levels`` is given but ``keys`` is None (:issue:`46653`)
Expand All @@ -319,7 +317,7 @@ Other enhancements
- A :class:`errors.PerformanceWarning` is now thrown when using ``string[pyarrow]`` dtype with methods that don't dispatch to ``pyarrow.compute`` methods (:issue:`42613`)
- Added ``numeric_only`` argument to :meth:`Resampler.sum`, :meth:`Resampler.prod`, :meth:`Resampler.min`, :meth:`Resampler.max`, :meth:`Resampler.first`, and :meth:`Resampler.last` (:issue:`46442`)
- ``times`` argument in :class:`.ExponentialMovingWindow` now accepts ``np.timedelta64`` (:issue:`47003`)
- :class:`.DataError`, :class:`.SpecificationError`, :class:`.SettingWithCopyError`, :class:`.SettingWithCopyWarning`, :class:`.NumExprClobberingError`, :class:`.UndefinedVariableError`, :class:`.IndexingError`, :class:`.PyperclipException`, :class:`.PyperclipWindowsException`, :class:`.CSSWarning`, :class:`.PossibleDataLossError`, :class:`.ClosedFileError`, :class:`.IncompatibilityWarning`, :class:`.AttributeConflictWarning`, :class:`.DatabaseError, :class:`.PossiblePrecisionLoss, :class:`.ValueLabelTypeMismatch, :class:`.InvalidColumnName, and :class:`.CategoricalConversionWarning` are now exposed in ``pandas.errors`` (:issue:`27656`)
- :class:`.DataError`, :class:`.SpecificationError`, :class:`.SettingWithCopyError`, :class:`.SettingWithCopyWarning`, :class:`.NumExprClobberingError`, :class:`.UndefinedVariableError`, :class:`.IndexingError`, :class:`.PyperclipException`, :class:`.PyperclipWindowsException`, :class:`.CSSWarning`, :class:`.PossibleDataLossError`, :class:`.ClosedFileError`, :class:`.IncompatibilityWarning`, :class:`.AttributeConflictWarning`, :class:`.DatabaseError`, :class:`.PossiblePrecisionLoss`, :class:`.ValueLabelTypeMismatch`, :class:`.InvalidColumnName`, and :class:`.CategoricalConversionWarning` are now exposed in ``pandas.errors`` (:issue:`27656`)
- Added ``check_like`` argument to :func:`testing.assert_series_equal` (:issue:`47247`)
- Add support for :meth:`.GroupBy.ohlc` for extension array dtypes (:issue:`37493`)
- Allow reading compressed SAS files with :func:`read_sas` (e.g., ``.sas7bdat.gz`` files)
Expand Down Expand Up @@ -491,16 +489,6 @@ Calling :meth:`.DataFrameGroupBy.value_counts` with ``observed=True`` would inco
Backwards incompatible API changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. _whatsnew_150.api_breaking.api_breaking1:

api_breaking_change1
^^^^^^^^^^^^^^^^^^^^

.. _whatsnew_150.api_breaking.api_breaking2:

api_breaking_change2
^^^^^^^^^^^^^^^^^^^^

.. _whatsnew_150.api_breaking.deps:

Increased minimum versions for dependencies
Expand Down Expand Up @@ -567,7 +555,73 @@ Optional libraries below the lowest tested version may still work, but are not c
+-----------------+-----------------+---------+
| Package | Minimum Version | Changed |
+=================+=================+=========+
| | | X |
| beautifulsoup4 |4.9.3 | X |
+-----------------+-----------------+---------+
| blosc |1.21.0 | X |
+-----------------+-----------------+---------+
| bottleneck |1.3.2 | X |
+-----------------+-----------------+---------+
| brotlipy |0.7.0 | |
+-----------------+-----------------+---------+
| fastparquet |0.4.0 | |
+-----------------+-----------------+---------+
| fsspec |2021.05.0 | X |
+-----------------+-----------------+---------+
| html5lib |1.1 | |
+-----------------+-----------------+---------+
| hypothesis |6.13.0 | X |
+-----------------+-----------------+---------+
| gcsfs |2021.05.0 | X |
+-----------------+-----------------+---------+
| jinja2 |3.0.0 | X |
+-----------------+-----------------+---------+
| lxml |4.6.3 | X |
+-----------------+-----------------+---------+
| matplotlib |3.3.2 | |
+-----------------+-----------------+---------+
| numba |0.53.1 | X |
+-----------------+-----------------+---------+
| numexpr |2.7.3 | X |
+-----------------+-----------------+---------+
| odfpy |1.4.1 | |
+-----------------+-----------------+---------+
| openpyxl |3.0.7 | X |
+-----------------+-----------------+---------+
| pandas-gbq |0.15.0 | X |
+-----------------+-----------------+---------+
| psycopg2 |2.8.6 | X |
+-----------------+-----------------+---------+
| pyarrow |1.0.1 | |
+-----------------+-----------------+---------+
| pymysql |1.0.2 | X |
+-----------------+-----------------+---------+
| pyreadstat |1.1.2 | X |
+-----------------+-----------------+---------+
| pytables |3.6.1 | |
+-----------------+-----------------+---------+
| python-snappy |0.6.0 | |
+-----------------+-----------------+---------+
| pyxlsb |1.0.8 | X |
+-----------------+-----------------+---------+
| s3fs |2021.05.0 | X |
+-----------------+-----------------+---------+
| scipy |1.7.1 | X |
+-----------------+-----------------+---------+
| sqlalchemy |1.4.16 | X |
+-----------------+-----------------+---------+
| tabulate |0.8.9 | X |
+-----------------+-----------------+---------+
| tzdata |2022a | |
+-----------------+-----------------+---------+
| xarray |0.19.0 | X |
+-----------------+-----------------+---------+
| xlrd |2.0.1 | |
+-----------------+-----------------+---------+
| xlsxwriter |1.4.3 | X |
+-----------------+-----------------+---------+
| xlwt |1.3.0 | |
+-----------------+-----------------+---------+
| zstandard |0.15.2 | |
+-----------------+-----------------+---------+

See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for more.
Expand Down Expand Up @@ -703,7 +757,7 @@ retained by specifying ``group_keys=False``.

Inplace operation when setting values with ``loc`` and ``iloc``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Most of the time setting values with ``frame.iloc`` attempts to set values
Most of the time setting values with :meth:`DataFrame.iloc` attempts to set values
inplace, only falling back to inserting a new array if necessary. There are
some cases where this rule is not followed, for example when setting an entire
column from an array with different dtype:
Expand Down Expand Up @@ -924,7 +978,7 @@ Categorical
^^^^^^^^^^^
- Bug in :meth:`.Categorical.view` not accepting integer dtypes (:issue:`25464`)
- Bug in :meth:`.CategoricalIndex.union` when the index's categories are integer-dtype and the index contains ``NaN`` values incorrectly raising instead of casting to ``float64`` (:issue:`45362`)
- Bug in :meth:`DataFrame.concat` when concatenating two (or more) unordered ``CategoricalIndex`` variables, whose categories are permutations, yields incorrect index values (:issue:`24845`)
- Bug in :meth:`concat` when concatenating two (or more) unordered :class:`CategoricalIndex` variables, whose categories are permutations, yields incorrect index values (:issue:`24845`)

Datetimelike
^^^^^^^^^^^^
Expand Down