I need to perform many simple operations on multiple DataFrames. I've tried to use for loop, however code is not working:
for df in (df1, df2):
df=df.replace({':':''}, regex=True)
df["2018"] = pd.to_numeric(df["2018"], downcast="float")
df["2019"] = pd.to_numeric(df["2019"], downcast="float")
I can run it without errors but DataFrames don't change.