
because when we call every element from the list, the one we are calling is actually the name. So what I refers is:
we need the name but not overwrite. You could try:
locals()[“df”+ str(i) ] = raw[i]
this will create 20 dfs with names df1 … df20 like you did
-
This reply was modified 4 years, 5 months ago by
Justin.
-
This reply was modified 4 years, 5 months ago by
Justin.