Skip to main content

Exploratory data analysis and transformation toolkit for Marketing Mix Modeling (MMM)

Project description

🦉 OwlMix

OwlMix is a Python library for automated exploratory data analysis (EDA), designed for time-series and marketing mix modeling (MMM) workflows. OwlMix helps you quickly understand your data, identify trends, and prepare for modeling.

Features

  • Automated EDA report generation (HTML/JSON)
  • Time series lag and correlation analysis
  • Variable relationship and distribution insights
  • Causality and trend detection
  • Easy-to-use API

Quick Start

import pandas as pd
from owlmix.reporting import ReportBuilder, ReportHTMLRenderer

csv_file = "path/to/your/csv/file.csv"

df = pd.read_csv(csv_file)
report_builder = ReportBuilder(
    df=df, 
    target_col="kpi", 
    date_col="date"
)

# Update the config, if needed
report_builder.config.update_config(
    acf_pacf={
        "columns": ["kpi"],
        "n_lags": 5
    },
    vif={
        "features": ["tv_spend", "digital_spend", "radio_spend"]
    },
    correlation={
        "columns": ["kpi", "tv_spend"],
        "n_lags": 8,
        "precision": 5
    },
    box_plot={
        "columns": ["kpi", "tv_spend", "digital_spend", "radio_spend", "tv_grp", "digital_imp"],
        "n_plot_per_row": 3,
        "method": "zscore",
        "threshold": 1.5  # default is 3 for method "zscore" and 1.5 for method "iqr"
    },
    ccf={
        "feature_columns": ['tv_spend'],
        "max_lag": 3
    },
    # update the other configs
)
report_builder.add_all_sections(verbose=True)
report = report_builder.build()
report_builder.save("result.json")

renderer = ReportHTMLRenderer()
html_str = renderer.render_from_json("result.json")
renderer.save_html("report.html")

Installation

pip install owl-mix

Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

owl_mix-1.0.0rc1.tar.gz (76.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

owl_mix-1.0.0rc1-py3-none-any.whl (122.0 kB view details)

Uploaded Python 3

File details

Details for the file owl_mix-1.0.0rc1.tar.gz.

File metadata

  • Download URL: owl_mix-1.0.0rc1.tar.gz
  • Upload date:
  • Size: 76.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for owl_mix-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 505681448a01c8d66d472ab1aad1ceeb76e304b4c007d4c645a69f649acbaf23
MD5 59009bb9c7027863ff2ac2e7b2862faf
BLAKE2b-256 00505948d8f098b5b1bf39da8194817e9d1a306e92343b3ccb27cb283066524c

See more details on using hashes here.

File details

Details for the file owl_mix-1.0.0rc1-py3-none-any.whl.

File metadata

  • Download URL: owl_mix-1.0.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 122.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for owl_mix-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2a5f769bc0d2bfa4b507f06c698fc0d64f7bf79bad4c852f17d5f662daced1b
MD5 2f906feb52d05b039ca4326eac9e8735
BLAKE2b-256 8ceb526ada739f441e21df18ca63337e9f064894c012e67bcb6b21b5a41d5ab0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page