text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

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

df.isnull().sum()

df_rating = df.groupby('City')['Rating'].mean().reset_index()
df_rating = df_rating.sort_values('Rating')
plt.figure(figsize=(16, 10))
plt.pie(df_rating['Rating'], labels=df_rating['City'], autopct='%1.2f%%')
plt.title('Comparison of Average Ratings Across Cities')
plt.show()