-1
I have a cvs file with two columns, one of a month (January, February, etc.) and another with value (relative to each month), and I want to create a graph (of bars for example), but gives the following error: "Typeerror: Empty 'Dataframe': no Numeric data to Plot"
Follow my code (I’m using Jupyter):
import pandas as pd
import matplotlib.pyplot as plt
plt.style.use('ggplot')
licitacoes = pd.read_csv("licitacoes.csv")
licitacoes.plot(kind='bar', x='Mes', y='valor')
plt.title('Valores por mes')
plt.xlabel('Mes')
plt.ylabel('valor')
plt.show()
Could you please put an excerpt from the file so we can analyze it? And if possible, a larger part of the code, from reading the dataset
– João Victor Sierra
I put the rest of the code and the file
– Guilherme Farias