0
Good afternoon, I’m doing a job for the college where I need to generate a multiple graph in horizontal bars.
I’m using the following code:
df_escolaridade['Espacialidades'] = df_escolaridade['Espacialidades'].astype("string")
df_escolaridade
index = []
for col in df_escolaridade.columns[2:]:
df_escolaridade[col] = pd.to_numeric(df_escolaridade[col],errors='coerce')
index.append(col)
ax = df_escolaridade.plot.barh(figsize=(15,10), y = index)
but I would like the graph to be separated by city, example of the graph generated in excel:
Follows dataframe I’m using:
Thank you for your answers, thank you very much!
Miguel, good night! All right? Can you make the data available for testing? It doesn’t have to be full csv/excel. Hug!
– lmonferrari
All right, what’s up? The following is a link to the dataframe exported in csv and uploaded to github: https://raw.githubusercontent.com/migueelcruz/DataScience_Dengue/master/dataframe.csv?tokenAMYYLNFIE3PMKDAQYDHKBK7OD5E6
– Miguel Botelho
is giving error 404
– lmonferrari
I’m sorry, I’m new using github, follow csv link on google drive: https://drive.google.com/file/d/1o9PsP0QO6jR4eVLg3TQsVvrY4L-QzxFJ/view?usp=sharing
– Miguel Botelho
relax! now it worked!
– lmonferrari