# -*- coding: utf-8 -*-
"""
Created on Mon May 31 11:18:30 2021

@author: Sim
"""
import pandas as pd
import matplotlib.pyplot as plt

plt.bar(x=["A", "B", "C", "D"], height= [3, 8, 1, 10])
plt.show()

x = ["A"]*3 + ["B"]*8 + ["C"] + ["D"]*10
print(x)
x = pd.Series(x) 

freq = x.value_counts(sort=False)
freq.plot(kind="bar")  # 또는 
freq.plot.bar()
plt.show()


plt.bar(x = freq.keys(), height = freq.tolist())
plt.show()