from pathlib import Path

import pandas as pd

csv_path = Path(__file__).resolve().parents[2] / "order.csv"
order_df = pd.read_csv(csv_path)

# Hitung quartile 1
Q1 = order_df[["product_weight_gram"]].quantile(0.25)
# Hitung quartile 3
Q3 = order_df[["product_weight_gram"]].quantile(0.75)
# Hitung inter quartile range dan cetak ke console
IQR = Q3 - Q1
print(IQR)
