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
#3
this_is_+name = pd.DataFrame()

This statement will surely throw error, since the + operator is on LHS(Left hand side) of the = sign.
As replied by Buran, its not a good idea to create variable in run time.
Reply


Messages In This Thread
RE: dynamically create variables' names in python - by meenakshi - Sep-17-2019, 06:16 AM

Forum Jump:

User Panel Messages

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