Skip to main content

Advanced time-series analytics and forecasting toolkit for commodity and power trading

Project description

EIA Band Plot & Time Series Forecasting

This package provides two primary utilities:

  • five_year_plot – Generate interactive 5‑year band plots using Plotly. These plots mirror the charts used by the U.S. Energy Information Administration (EIA) to contextualize recent values against the range, minimum, maximum and average of the last five years. Multiple numeric columns within a DataFrame can be plotted simultaneously as separate subplots.

  • ml_forecast – Train individual AutoGluon time series models for each numeric column in a DataFrame and forecast future values. The function returns a DataFrame with point forecasts and, if requested, prediction intervals. Each series is trained independently using the specified presets (default: best_quality).

Installation

Install the package with:

pip install analysis3054

To enable the optional machine‑learning forecasting features, also install the AutoGluon time series dependency:

pip install analysis3054[ml]

Usage

Five‑Year Band Plot

import pandas as pd
from analysis3054 import five_year_plot

# Example DataFrame with a 'date' column and one or more numeric columns
df = pd.read_csv("my_timeseries_data.csv")

# Create the plot
fig = five_year_plot(date='date', df=df, prior_year_lines=1)
fig.show()

Machine Learning Forecasting

import pandas as pd
from analysis3054 import ml_forecast

df = pd.read_csv("my_timeseries_data.csv")

# Forecast the next 12 periods for each numeric column
result = ml_forecast(date='date', df=df, periods=12)

# Access point forecasts
forecasts = result.forecasts

# Access confidence intervals (if requested)
conf_ints = result.conf_intervals

See the docstrings of each function for detailed parameter descriptions.

User Guide

For a complete overview of all available functions, advanced forecasting methods, statistical analyses and plotting utilities, consult the USER_GUIDE.md file included with the package. It provides step‑by‑step examples, explains optional parameters such as confidence interval computation and plotting, and offers best practices for combining models and interpreting results.

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

analysis3054-0.2.1.tar.gz (119.7 kB view details)

Uploaded Source

Built Distribution

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

analysis3054-0.2.1-py3-none-any.whl (128.9 kB view details)

Uploaded Python 3

File details

Details for the file analysis3054-0.2.1.tar.gz.

File metadata

  • Download URL: analysis3054-0.2.1.tar.gz
  • Upload date:
  • Size: 119.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for analysis3054-0.2.1.tar.gz
Algorithm Hash digest
SHA256 227d6f49e1b823a6f2bb3e06bfce35b81774da3ecfbed1b2bd6e2d294fd7394d
MD5 a71c3d3ef920b76a17fa1c9b5c199e41
BLAKE2b-256 eac10fd361857f062127502290387c0ff5b25a2f33d0ed0f149adc8455d8a857

See more details on using hashes here.

File details

Details for the file analysis3054-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: analysis3054-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 128.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for analysis3054-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1170a44c257d120506826909447f451159028a957bd2d5a4ea969bc5fa495f06
MD5 14f25c98780202dcd11bee88ab491f6b
BLAKE2b-256 eed52486cd1a007f5af640a15b21cb0089834e0f16cbf4c68d1bc091195ce0ba

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