Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Plot csv data with matplotlib and pandas
import matplotlib.pyplot as plt
import pandas as pd
headers = ['Country', 'Visitors']
df = pd.read_csv('September.csv', delimiter=",", names=headers)
x = df['Country']
y = df['Visitors'], y)
plt.ylabel('New Users')
plt.title('September Visitors')
Australia 91
Canada 93
Germany 109
United Kingdom 170
United States 1343
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.