← All recipes
Moderne licensed

Migrate deprecated .append() to pd.concat()

Recipe IDorg.openrewrite.python.cleanup.DataframeAppendToConcatArtifactopenrewrite-static-analysis

DataFrame.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.DataframeAppendToConcat

If the recipe isn’t available locally, install it with:

mod config recipes pip install openrewrite-static-analysis