# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# # Exploratory data analysis on Indian food kaggle dataset

# +
from IPython.core.interactiveshell import InteractiveShell

InteractiveShell.ast_node_interactivity = "all"
# -

import pandas as pd
import seaborn as sns

df = pd.read_csv("dataset/indian_food.csv", na_values=-1)
df.info()

df.head()

# veg vs non-veg dishes
df.loc[:, "diet"].value_counts()
sns.countplot(x="diet", data=df, order=df.diet.unique())

df.loc[:, "flavor_profile"].value_counts()

df.loc[:, "course"].value_counts()

df.loc[:, "state"].value_counts()

dishes_by_region = df.loc[:, "region"].value_counts()
sns.barplot(x=dishes_by_region.index, y=dishes_by_region.values)

df.loc[df["flavor_profile"] == "bitter"]

sns.catplot(x="course", y="prep_time", data=df, hue="course", col="course")

sns.catplot(x="course", y="cook_time", data=df, hue="course", col="course")

StarcoderdataJupyterScriptsDedupFiltered