text_plain_output_1.png image_output_1.png
import pandas as pd

import seaborn as sns

df = pd.read_csv('../input/avocado-prices/avocado.csv')

df.shape

df.drop(columns='year', inplace=True)

df[['Year', 'Month', 'day']] = df.Date.str.split('-', expand=True)

df.drop(columns='Date', inplace=True)

df.drop_duplicates(inplace=True)

df.shape

df.region.unique()

df.region.value_counts()

sns.boxplot(x='Month', y='AveragePrice', data=df)