简体   繁体   中英

Error 'Series' object has no attribute 'boxplot'

I have df4, which is data from 1st jan-26th Aug. df5 is this data from 1st Jan - 28th Feb, I'm trying to create boxplot to display my data for each season. Here is my code. Does anyone know where I am going wrong?

df5 = df4[pd.date_range(start = '01/01/2020', end = '28/02/2020')]
print(df5)
df5.boxplot()
plt.show()

sorry about the layout, I am new to this website. Each space is separated by a line.

df5 = df4[pd.date_range(start = '01/01/2020', end = '28/02/2020')]
print(df5)
df5.plot.boxplot()
plt.show()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM