Link to home
Start Free TrialLog in
Avatar of Junior Vasquez
Junior VasquezFlag for El Salvador

asked on

Python/Pandas Barchart label

using the below code, i'm getting the ordinal positions for the barchart produced instead of the column names from the .csv(dataframe) i can't figure out how to get to column names into the chart

import pyodbc
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
df = pd.read_csv('c:/python/incidents_hist.csv')
dfUser generated imagedf.plot.bar()
Avatar of Norie
Norie

Junior

Can you upload a small sample CSV file?
Avatar of Junior Vasquez

ASKER


OK here's the sample.


incidents_hist.csv

ASKER CERTIFIED SOLUTION
Avatar of SiHodgy007
SiHodgy007
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial