Black Lives Matter. Please consider donating to Black Girls Code today.

Height of bar Chart

Dear Experts,

I have a following code to get the bar chart

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
df2=pd.read_excel(r"C:\Users…\Test PK.xlsx", sheet_name=‘Sheet1’)

x=df2.DOW

plt.bar(x,height=df2[‘ODRev’])

plt.show()

height of bars in the graph is not Sum

how do i get the sum of all numbers in 'ODRev" for DOW

Regards

Prabhu