Plot won't show in Jupyter
Question:
I’m new to python and I began to teach myself how to use pandas on jupyter using the exercise from this link:
I have the problem that the plot at 1.3 won’t appear when I do it in Jupyter, I only get the following output:
matplotlib.axes._subplots.AxesSubplot at 0x8ad24a8>"
However it does appear when I run the same code in Spyder. Does anyone know why this is? This is my code:
import pandas as pd
import os
fixed_df = pd.read_csv('bikes.csv', sep=';', encoding='latin1', parse_dates=['Date'], dayfirst=True, index_col='Date')
fixed_df['Berri1'].plot()
Answers:
add the code below before your plots:
%matplotlib inline
I’m new to python and I began to teach myself how to use pandas on jupyter using the exercise from this link:
I have the problem that the plot at 1.3 won’t appear when I do it in Jupyter, I only get the following output:
matplotlib.axes._subplots.AxesSubplot at 0x8ad24a8>"
However it does appear when I run the same code in Spyder. Does anyone know why this is? This is my code:
import pandas as pd
import os
fixed_df = pd.read_csv('bikes.csv', sep=';', encoding='latin1', parse_dates=['Date'], dayfirst=True, index_col='Date')
fixed_df['Berri1'].plot()
add the code below before your plots:
%matplotlib inline