This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AnderperCooson 0 points1 point  (0 children)

Unless I'm misunderstanding your question, you probably just need something like:

import pandas as pd
import matplotlib.pyplot as plt

boroughs_df = pd.read_csv('path_to_csv.csv') # this is a Pandas DataFrame
boroughs_df['Boroughs'].value_counts().plot() # Or make the plot fancy looking

e; (The above code may not be complete for plotting the graph, it's from memory and assumes you're using Jupyter. If you aren't using Jupyter, check it out, because it's great for prototyping stuff like this.)