application_vnd.jupyter.stderr_output_1.png
import pandas as pd

import seaborn as sns

import seaborn as sns

import seaborn as sns

import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
train = pd.read_csv('/kaggle/input/diamonds/diamonds.csv')
train

train.isnull().sum()

import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
data = train

Q1 = train['carat'].quantile(0.25)
Q3 = train['carat'].quantile(0.75)
IQR = Q3 - Q1
train = train[(train['carat'] >= Q1 - 1.5 * IQR) & (train['carat'] <= Q3 + 1.5 * IQR)]

import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
data = train
sns.boxplot(x=data['carat'])