Skip to main content

Data Insight and Visualization Engine

Project description

dive

DIVE — Data Insights & Visualization Experience

dive/main.py implements Dive, a small pure-Python container for ordered numeric data with:

  • statistical summaries (mean, median, mode, stdev, variance, skewness, kurtosis, etc.)
  • quantiles and histograms (percentile, quartiles, iqr)
  • data transforms (z_scores, normalized, cumulative_sum, moving_average, diff, pct_change, sorted, clip, apply)
  • prediction engine (predict_next, predict_detail, linear, quadratic, holt, exponential, drift, newton, lagrange, seasonal, ensemble)
  • regression/correlation analysis (correlation, covariance, regress_on)
  • ASCII visualizations (histogram, sparkline, plot_ascii)
  • utility exports (to_list, to_dict)

Installation

No packaging yet; use directly from source:

git clone <repo>
cd dive
python -m pip install .    # (optional if configured as package)

Quickstart

from main import Dive

# create dataset
sales = Dive([100, 150, 120, 200, 180])
print(sales.mean())          # 150.0
print(sales.summary())

# add new value
sales += 220
print(sales[-1])            # 220

# predict next value (ensemble model)
print(sales.predict_next())

# use reference series for regression mode (len(reference)==len(self)+steps)
temps = Dive([20, 25, 22, 30, 28, 35])
print(sales.predict_next(reference=temps, TA=1))

# detailed prediction report
print(sales.predict_detail(steps=3, reference=temps, TA=1))

API overview

Data management

  • Dive(data=None)
  • add, append, remove, pop, clear, copy, data property
  • supports Python protocols: len, indexing, iteration, in, equality

Stats

  • mean, median, mode, geo_mean, harmonic_mean
  • stdev, variance, range, min, max, sum
  • percentile, quartiles, iqr.

Prediction

  • predict_next(steps=1, method='ensemble', reference=None, corr_threshold=0.1, TA=0)
  • predict_detail(...)

Cross-dataset

  • correlation(other)
  • covariance(other)
  • regress_on(other)

Visualization

  • summary() / describe()
  • histogram(bins=10, width=40)
  • sparkline()
  • plot_ascii(width=60, height=15)

Notes

main.py includes a built-in quick test in if __name__ == '__main__' that evaluates prediction accuracy over polynomial and series models.

To see the full behavior, run:

python main.py

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

dive_for_data-0.1.0.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

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

dive_for_data-0.1.0-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

Details for the file dive_for_data-0.1.0.tar.gz.

File metadata

  • Download URL: dive_for_data-0.1.0.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for dive_for_data-0.1.0.tar.gz
Algorithm Hash digest
SHA256 07af2d33a0f9e1def258fa35f8b513ab251348528be6fba05fc872918cb07b3d
MD5 3a453efa3aaa96e2744dec5e85135b1f
BLAKE2b-256 ccc822016aec896276bb909426ad6422aeafd72b242829e96acbbbe1b88fa4ce

See more details on using hashes here.

File details

Details for the file dive_for_data-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dive_for_data-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for dive_for_data-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bbf7fa98ae3323672ba5851e6870c6d87691a2518ab4c9394d279f93a564fad0
MD5 363ac0fef046767a7e0e1b9b78383e04
BLAKE2b-256 3542953b911cd7ae46ef8fd8c1b9188a16b995d8cdfd21b5bed7e933e741b76d

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