From a whole data set, I need to plot the maximum & minimum temperatures for just the months of January and July. Column 2 is the date, and columns 8 and 9 are the 'TMAX' and 'TMIN.' This is what I have so far:
napa3=pd.read_csv('MET 51 Lab #10 data (Pandas, NAPA).csv',usecols=[2,8,9])
time2=pd.to_datetime(napa3['DATE'],format='%Y-%m-%d')
imon=time2.dt.month
jj=(imon==1)&(imon==7)
data_jj=napa3.loc[jj]
data_jj.plot.hist(title='TMAX & TMIN for January and July')
plt.show()
I keep getting the error: "TypeError: no numeric data to plot" Why is this?