I have a list
l = [1,2,3,4]
and would like to use this to dynamically create empty dataframes to later append data to:
for n in l:
df+str(n) = pd.DataFrame(columns=['col','val'])
so you can see the output would be 4 empty dataframe, df1, df2, df3, and df4. But when executed I get a SyntaxError: keyword can't be an expression. How do I go about this?