I want to create a for_loop that doesn't overwrite the exiting dataframe?
for df in 2011, 2012, 2013:
df = pd.pivot_table(df, index=["income"], columns=["area"], values=["id"], aggfunc='count')
Right now the for loop above iterates over each of the existing dataframes. How can I make it so the for loop creates a bunch of new dataframes?
2011_pivot, 2012_pivot, 2013_pivot