Say
x = pandas.DataFrame(something)
y = ['x']
I want to make
z = {i: notstr(i) for i in y}
output
z = {'x': pandas.DataFrame(something)}
What would this 'notstr()
' function be?
How do you make a string no longer a string but a variable?
What is the opposite of str()
in Python
?
Note: obviously in real life, my variables x and y
are much more complicated.