Migrate removed DataFrame.append() to pd.concat()
ProprietaryDataFrame.append() no longer exists in pandas 2.0+. This recipe rewrites df.append(other) to pd.concat([df, other]) where both df and other are a pandas DataFrame, so it only fires where their types resolve. It leaves alone a call with keyword arguments, comments, or a Series, dict or list argument, which concat treats differently.
org. openrewrite. python. cleanup. DataframeAppendToConcatmod run . --recipe= org. openrewrite. python. cleanup. DataframeAppendToConcatInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.