Generation

generate functionSat, 28 Jan 2023

There is a Pandas dataframe: hotels_rev = df1[['date', 'hotel', 'revenue', 'av_revenue', 'difference', 'in_percent']].sort_values(by=['hotel', 'date']) Draw a boxplot graph with the x scale as 'hotel' and the y scale as 'av_revenue'

hotels_rev.boxplot(column='av_revenue', by='hotel')

Questions about programming?Chat with your personal AI assistant