Migrate deprecated .append() to pd.concat()
Recipe ID
org.openrewrite.python.cleanup.DataframeAppendToConcatArtifactopenrewrite-static-analysisDataFrame.append() no longer exists in pandas 2.0+. This recipe rewrites .append(x) calls to pd.concat([df, x]).
Single recipeProprietary
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.cleanup.DataframeAppendToConcatIf the recipe isn’t available locally, install it with:
mod config recipes pip install openrewrite-static-analysis