biplobgon/product-recommendation-system
0
1import pandas as pd2import os3 4# Ensure folder exists5os.makedirs("data/sample", exist_ok=True)6 7# Load full dataset8events = pd.read_csv("data/raw/events.csv")9 10# Take sample (10K rows)11sample = events.sample(10000, random_state=42)12 13# Save sample14sample.to_csv("data/sample/sample_events.csv", index=False)15 16print("Sample dataset created successfully!")17 