Ethan C.

asked • 06/10/21

Python Program of Bar Plot

# Give filepath here to the variable filepath

filepath = '/content/drive/MyDrive/ColabNotebooks/IMDbmovies.csv'

# Import "pandas" package here

import pandas as pd

This code below is Python programming below but getting an error, please advise, also the code above is part of the code below.

Give a bar plot of top 10 English movies based on the budget. The movie is rank 1 if it has the highest budget.

import matplotlib.pyplot as plt

import seaborn as sns

  

sns.set_context('paper')

# load dataset

IMDbmovies = sns.load_dataset('IMDbmovies.csv')

# createanic plot

sns.barplot(x = 'title', y = 'language', data = budget,

            palette = 'PuRd',ci=None

            )

plt.legend()

plt.show()

print(IMDBmovies.columns)


1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.