Generation

generate functionThu, 16 Feb 2023

There is a Pandas Series: Day Tuesday 358114 Wednesday 345393 Thursday 323337 Friday 293805 Saturday 292016 Monday 278905 Sunday 273823 construct a horizontal bar graph with these data

import pandas as pd import matplotlib.pyplot as plt df = pd.DataFrame({'Day':['Tuesday','Wednesday','Thursday','Friday','Saturday','Monday','Sunday'], 'Value':[358114,345393,323337,293805,292016,278905,273823]}) df.plot.barh()

Questions about programming?Chat with your personal AI assistant