pandas 3.0.0
pandas 3.0.0
⚠️ Breaking Changes
- Removed previously-deprecated functionality — upgrade to 2.3 first and resolve all warnings before upgrading
- Datetime-like data now has new default resolution inference behavior
- Python 3.10 and below no longer supported (requires 3.11+)
Features
- String dtype is now the default for string columns (no more
objectdtype by default) - Copy-on-Write (CoW) enabled by default — eliminates
SettingWithCopyWarningand makes copy/view semantics predictable - Initial support for
pd.col()syntax for column selection
Installation
pip install --upgrade pandas==3.0.*
# or
conda install -c conda-forge pandas=3.0
We are pleased to announce the release of pandas 3.0.0, a major release from the pandas 2.x series. This release includes various new features, bug fixes, and performance improvements, as well as possible breaking changes.
The pandas 3.0 release removed a functionality that was deprecated in previous releases. It is recommended to first upgrade to pandas 2.3 and to ensure your code is working without warnings, before upgrading to pandas 3.0.
Highlights include:
- Dedicated string data type by default
- Consistent copy/view behaviour with Copy-on-Write (CoW) (a.k.a. getting rid of the SettingWithCopyWarning)
- New default resolution for datetime-like data
- Initial support for the new
pd.colsyntax
See the announcement blog post and the detailed release notes for a list of all the changes.
Pandas 3.0.0 supports Python 3.11 and higher. The release can be installed from PyPI
python -m pip install --upgrade pandas==3.0.*
Or from conda-forge
conda install -c conda-forge pandas=3.0
Please report any issues with the release on the pandas issue tracker.
Thanks to all the contributors who made this release possible.