running Python script within Spyder does not show output in Console
I've created a script in Spyder. If I step through each line I see the output in the console. HOwever, if I click on the green "play" button to run the script, I see this message in the console,
However, if I F9 the last instruction, I get the expected output,pic of console after F9 last script instruction
Here is the code:
path="C:/Users/jeriv/Documents/Python/ML_Andew_NG/data"
os.chdir(path)
file="ex1data1.txt"
data = pd.read_csv(file, header=None, names=['Population', 'Profit'])
data.head()Any help is appreciated.
2 Reset to default