I have a script that fetches data from a mySQL server and saves it as a pandas dataframe, that particular dataframe then has to be saved with a unique name as chosed by the user.
the dataframe is created as part of a function called "createDF", and then saved as "df".
df = createDF()
this works and the dataframe object is saved as "df". What I need to do is allow the user to name the dataframe and not have it fixed with the name "df" but instead have it saved as "df+userinput". Where "userinput" is the string/int supplied by the user.
I seems certain that the issue is in trying to combine the input-type (str or int) with the object name "df", as I keep getting "SyntaxError: can't assign to operator".
I have no idea what a viable sollution would look like and some help would be greatly appreciated.