Upgrade to pandas 2.0
Recipe ID
org.openrewrite.python.migrate.pandas.UpgradeToPandas20Artifactopenrewrite-migrate-pythonMigrate code that uses APIs removed in pandas 2.0, such as DataFrame.append(), which becomes pd.concat().
Composite recipepandaspython2.0migrationProprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.python.migrate.pandas.UpgradeToPandas20If the recipe isn’t available locally, install it with:
mod config recipes pip install openrewrite-migrate-python
mod config recipes jar install org.openrewrite.recipe:rewrite-migrate-python:RELEASE
mod config recipes jar install org.openrewrite:rewrite-python:RELEASEDefinition
This recipe runs the following recipes in order.
- Migrate removed
DataFrame.append()topd.concat()org.openrewrite.python.cleanup.DataframeAppendToConcat