text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

df_main = pd.read_csv('../input/zomato.csv')

df_loc = df_main['location'].value_counts()[:20]

df_BTM =df_main.loc[df_main['location']=='BTM']
df_BTM_REST= df_BTM['rest_type'].value_counts()

fig = plt.figure(figsize=(20,10))
ax1 = fig.add_subplot(121)

sns.barplot(x=df_BTM_REST, y= df_BTM_REST.index,ax=ax1)
plt.title('Count of restaurant types in BTM')
plt.xlabel('Count')
plt.ylabel('Restaurant Name')

plt.figure(figsize=(20, 15))
df_BTM_REST1 = df_BTM_REST[:10]
labels = df_BTM_REST1.index
explode = (0.1, 0, 0, 0, 0, 0, 0, 0, 0, 0)
plt.pie(df_BTM_REST1.values, labels=labels, autopct='%1.1f%%', shadow=True, startangle=140)
plt.title('top 10 restaurant types in BTM')
print('Quick bites are {} % of all the Restaurant types'.format(df_BTM_REST.values[0] / df_BTM_REST.sum() * 100))