text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

df = pd.read_csv('/kaggle/input/indian-restaurants-2023/restaurants.csv')

df.isnull().sum()

rating_across_state = df.groupby('City').mean()
rating_across_state.reset_index(level=0, inplace=True)
plt.figure(figsize=(10, 8))
plt.xlabel('City')
plt.ylabel('Rating')
sns.barplot(x='City', y='Rating', data=rating_across_state)
plt.xticks(rotation=90, fontsize=12)
plt.yticks(fontsize=12)
plt.ylim(1, 5)
plt.show()