My data frame has 26 values but when I try to make a pie chart it only gets 11 values. What’s wrong?
My code:
import plotly.express as px
import pandas as pd
df = pd.read_excel(r"D:\Intensivo Python Hashtag\aula 2\export\estados.xlsx")
df = df.drop([“PIB”, “Área”, “Capital”], axis=‘columns’)
fig = px.pie(data_frame=df, values=‘População’, names=‘Nome’, title=“População Brasileira por Estado”, template=‘presentation’, )
fig.show()
print(df.info())
my data:
my chart: