Cannot inspect variables in PyCharm

Hi, I want to use PyCharm to do some data-science, however I struggle to inspect the variables. I run, for instance, the following code:

import pandas as pd

a = 1

df = pd.read_csv('Titanic.csv')

The code runs through fine, but when I then click on Python Console > Show variables, I can only see the 'special variables' tab (see image below)

What also strikes me as strange is that I can run the code as a whole (using the green arrow on the upper right corner, I can print it, work with it etc..), but when I try to run the code line by line using Alt + Shift + E, I receive the error FileNotFoundError: [Errno 2] No such file or directory: 'Titanic.csv' . This is strange, because the csv file is in the exact same folder as the file I am executing. Are there some settings that I should look at here, something obvious I am missing? I tried chaning the Variables Loading Policy to Synchronous or Asynchronous, but it did not work. I am using PyCharm 2020.2.3 Professional.

 

Thanks for your help! Bas

 

 

0

Please sign in to leave a comment.