I am trying to make a simple bar chart: the height being frequencies of values in a Dataframe column
I have been running into this error: ValueError: incompatible sizes: argument 'height' must be length 1 or scalar
Code:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import pylab as pl
matplotlib.style.use('ggplot')
flags = [200, 201, 211, 237, 239, 250, 254, 255]
frequencies = [158, 87, 5, 4]
length = len(flags)
plt.bar(length, frequencies.values, align='center')
plt.show()

df['foo'].hist()