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


Go to the variable explorer window.

Then you have the option buttons on the right.



Click on it, Deselect it. Exclude all uppercase settings as shown.

Image

+6


source


It seems that Spyder's variable explorer doesn't like uppercase variables: try rewriting CMT_ as cmt_.



0


source







All Articles