0

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.

Praveen
  • 8,945
  • 4
  • 31
  • 49
mikal94305
  • 4,663
  • 8
  • 31
  • 40

0 Answers0