Python Forum
dynamically create variables' names in python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dynamically create variables' names in python
#8
thanks you so much all.
Eventually i found a way to call each single df from within the list through the index, e.g.:

dfs[i]

in order to remove the thousands of useless lines, i had to create a for loop where i would restart the temporary dataframe from scratch at each beginning of the loop.

At each end of the loop i would copy the temporary created df into the dfs[i].

In this way is working as i wanted, exception made that i can't generate the names df_2001 etc... but that doesn't really matter anymore at this point.
Thanks a lot for your help and inspiration!
Reply


Messages In This Thread
RE: dynamically create variables' names in python - by marco_ita - Sep-24-2019, 07:55 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020