Skip to main content

DIVE — Data Insight and Visualization Engine

Project description

DIVE — Data Insight and Visualization Engine

dive-for-data provides 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

pip install dive-for-data

Quickstart

from dive 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.0

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

# Use reference series for regression mode (len(reference) == len(self) + steps)
# This learns the relationship F(temps) -> sales
temps = Dive([20, 25, 22, 30, 28, 35])
print(sales.predict_next(reference=temps, TA=1))

# Detailed prediction report
report = sales.predict_detail(steps=3, reference=temps, TA=1)
print(report["ensemble"])

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)

License

This project is licensed under the GNU General Public License v3 (GPLv3).

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.1.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.1-py3-none-any.whl (32.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dive_for_data-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b8507ded75b747672e6bafb1df5371d01002a0609bdf17d1cb840c73df7bc4a2
MD5 cfa03a2cfce0a4e9e9352e0b901c7f13
BLAKE2b-256 ec3b12c4cc9271f4df206df997730dd9ffecfb46e131ea33e5689d227d9945d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dive_for_data-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 32.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 516f08d277e9db5c0cd2c363293a1db4a0e79f18516d5b4a60de6e81d2e2d276
MD5 8b02111994d502e88872e7458b939950
BLAKE2b-256 5167de823bcaf8aa6b3d27b3b2473e232093dd0e881613d3849f2da9047054dd

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