Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Latest commit

 

History

History
255 lines (183 loc) · 4.96 KB

v1.6.0.rst

File metadata and controls

255 lines (183 loc) · 4.96 KB

What's new in 1.6.0 (??)

These are the changes in pandas 1.6.0. See :ref:`release` for a full changelog including other versions of pandas.

{{ header }}

Enhancements

enhancement1

enhancement2

Other enhancements

Notable bug fixes

These are bug fixes that might have notable behavior changes.

Using :meth:`DataFrame.at` raises when trying to add a new column with multiple values

Old behavior

In [1]: import pandas as pd

In [2]: df = pd.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})

In [3]: # should raise InvalidIndexError
        df.at[slice(0, 1, None), 'c'] = 7

In [4]: df
Out[4]:
   a  b    c
0  1  4  7.0
1  2  5  7.0
2  3  6  NaN

New behavior

In [1]: import pandas as pd

In [2]: df = pd.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})

In [3]: df.at[slice(0, 1, None), 'c'] = 7

---------------------------------------------------------------------------
InvalidIndexError                         Traceback (most recent call last)
<ipython-input-3-a89a95224c2b> in <module>
----> 1 df.at[slice(0, 1, None), 'c'] = 7

notable_bug_fix2

Backwards incompatible API changes

Increased minimum versions for dependencies

Some minimum supported versions of dependencies were updated. If installed, we now require:

Package Minimum Version Required Changed
    X X

For optional libraries the general recommendation is to use the latest version. The following table lists the lowest version per library that is currently being tested throughout the development of pandas. Optional libraries below the lowest tested version may still work, but are not considered supported.

Package Minimum Version Changed
    X

See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for more.

Other API changes

Deprecations

Performance improvements

Bug fixes

Categorical

Datetimelike

Timedelta

Timezones

Numeric

Conversion

Strings

Interval

Indexing

Missing

MultiIndex

I/O

Period

Plotting

Groupby/resample/rolling

Reshaping

Sparse

ExtensionArray

Styler

Other

Contributors