from pathlib import Path

import matplotlib.pyplot as plt
import pandas as pd

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

# Membuat plot histogram menggunakan kolom price
order_df[["price"]].hist(figsize=(4, 5), bins=10, xlabelsize=8, ylabelsize=8)
plt.ticklabel_format(style="plain", axis="x")  # 1000000, bukan 1e6
plt.show()  # Untuk menampilkan histogram yang sudah dibuat
