import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

people = ['Hannah', 'Bethany', 'Kris', 'Alex', 'Earl', 'Lori']
reputation = ['awesome', 'cool', 'brilliant', 'meh', 'awesome', 'cool']
dictionary = dict(zip(people, reputation))
df = pd.DataFrame(dictionary.values(), dictionary.keys())
df = df.rename(columns={0:'reputation'})
print(df)
sns.countplot(x='reputation', data=df) # good

startups = pd.read_csv("./data/test-code.csv", sep=";", header=0)
print(startups)

locations = startups['Location'].value_counts().sort_index(ascending=True).to_frame()
locations = locations.rename(columns={0:'name'})
print(locations)
sns.countplot(x='Location', data=locations)

locations = startups['Location'].value_counts(ascending=True)
sns.barplot(x=locations.index, y=locations)    # Good

plt.show()