New Assigned Variables Not Displaying in Spyder Variable Explorer
I am writing Python in Spyder. See my code below:
import pandas as pd
data = pd.io.excel.read_excel('Data.xls')
CMT_column = data['CMT']
"data" contains a column named "CMT". What I am trying to do is create a variable named "CMT_column" that contains the values โโof the "CMT" column.
Here's the problem. After running the code, only "data" appears in the variable explorer. "CMT_column" does not exist. But if I call "CMT_column" in the IPython console, it shows the "CMT" values โโas expected. So, I think the variable was created in the end, but why isn't it visible in the variable?
Thanks in advance for your help.
+3
source to share
2 answers