简体   繁体   中英

Change y-axis range in Pandas.boxplot()

I use the following boxplot<\/code> function from Pandas<\/a> ,

df.boxplot(column=['D1', 'D2'])

You can do so editing the axis-object - you can either do

ax = df.boxplot(column=['D1', 'D2'])
ax.set_ylim(0, 10)

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