Plotting 5 horizontal bar plot in the same row

So I would like to plot that bar for the five different boroughs in New York using fig, ax = plt.subplots() in the same row with five different horizontal bar plot but I don’t know how to do it.

Can someone help?

Thank you really much!!!

For context, can you provide the link to the mission please?

Also, what have you tried so far? Are you familiar with the plt.subplots() function?

I’m working offline so I can just provide this
Schools (1).ipynb (187.3 KB)

I’m a newbie to plt.subplots() so I tried the solution you can find in the file at the end.

Could you check and tell me if makes sense to you?

Thank you

Click here to view the jupyter notebook file in a new tab

My apologies, but can you also provide the data files so that I can experiment with your notebook?

Data can be found here: Learn data science with Python and R projects
Extra data file from Kaggle can be found here: NYC Property Sales | Kaggle

1 Like

The reason for the error is because plt.plot wants named arguments and not positional ones. Simply modifying your last cell to the code below will get you where you want to be:

manhattan.plot(kind='barh',ax=ax1, color='tab:orange')