pandas 3.0.0 发布:默认字符串类型与 CoW 行为
pandas 3.0.0
pandas 是数据分析和量化交易的核心依赖,3.0 引入破坏性变更(默认字符串类型、CoW 行为),可能影响现有代码,建议升级前先迁移到 2.3 并消除警告。
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.col syntax
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.0Please report any issues with the release on the pandas issue tracker.
Thanks to all the contributors who made this release possible.
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力