I'm looking at this official Pandas documentation, which says I can specify an "object of class matplotlib.axes.Axes" when creating my boxplot.
How do I format this boxplot axis object so that I can manually set the maximum Y axis value?
I've seen questions and answers on here relating to changing the Y axis after the boxplot is created, but those have not worked for me and I'd like to set the Y axis max at the time of the boxplot's creation.
This is the code I have so far:
import pandas as pd
prices= pd.read_csv('..\priceData.csv')
boxplot = prices.boxplot(column=['price'])


Get the
Axesreturned byboxplotand use:boxplotfrom the documentation:After
set_xlimandset_ylim: