Skip to main content

To easy plot forecasting through ARIMA model

Project description

A package to make forecast visualisation easier

Objective: To make forecast visualisation easier and more expressive.

To install the package

pip install forecast-tool

Let me show you how the package works

(1) Make a simple forecast using ARIMA model

Input [1]:

from forecast_tool import forecast_plot as fp
df = fp.get_data()

period = 'y' #[y, m, d] 
date='Date'
newtarget='Volume'

fp.overall_vis(df, date, newtarget, period)

Output [1]:

alt text

(1) You can also customise it to create your own plot

Input [2]:

show_model_name=True
suggested_n_forcast=True
my_title = True
y_label_name = True
x_label_name = True
color_past='dodgerblue'
color_forecast='crimson'
linestyle_past = 'solid'
linestyle_forecast='--'
show_confidence=True
numElems=10
matplotlib_style = 'seaborn'
legend_position=2
fig_length=13.5
fig_height=6.5
legend_font_size=14
scientific_annotation=True
zoom_last_n = 3  # to zoom last n values in a plot

fp.overall_vis(df, date, newtarget, period, \
               zoom_last_n=zoom_last_n, matplotlib_style=matplotlib_style, scientific_annotation=False)

Output [2]:

alt text

This is contributed by Morris Lee.

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

forecast_tool-0.0.3.tar.gz (17.7 kB view hashes)

Uploaded Source

Built Distribution

forecast_tool-0.0.3-py3-none-any.whl (16.8 kB view hashes)

Uploaded Python 3

Supported by

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