INNER CODE UNIT · Python

load_cdnow_summary_data_with_monetary_value

CamDavidsonPilon/lifetimes · lifetimes/datasets/__init__.py:67

def load_cdnow_summary_data_with_monetary_value(**kwargs):
    """Load cdnow customers summary with monetary value as pandas DataFrame."""
    df = load_dataset("cdnow_customers_summary_with_transactions.csv", **kwargs)
    df.columns = ["customer_id", "frequency", "recency", "T", "monetary_value"]
    df = df.set_index("customer_id")
    return df

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…