Skip to main content

Python package for statistical data animations

Project description

Pynimate

PyPI Downloads Tests License Code style: black

Python package for statistical data animations.

Installation

with pip

Pynimate is avaialbe at pypi

pip install pynimate

How to use

Pynimate expects pandas dataframe formatted in this manner:
Where the time column is set to index.

time, col1, col2, col3
2012   1     2     1
2013   1     1     2
2014   2     1.5   3
2015   2.5   2     3.5

Bar Chart Example

import pandas as pd
from matplotlib import pyplot as plt

import pynimate as nim

df = pd.DataFrame(
    {
        "time": ["1960-01-01", "1961-01-01", "1962-01-01"],
        "Afghanistan": [1, 2, 3],
        "Angola": [2, 3, 4],
        "Albania": [1, 2, 5],
        "USA": [5, 3, 4],
        "Argentina": [1, 4, 5],
    }
).set_index("time")

cnv = nim.Canvas()
bar = nim.Barhplot.from_df(df, "%Y-%m-%d", "2d")
bar.set_time(callback=lambda i, datafier: datafier.data.index[i].year)
cnv.add_plot(bar)
cnv.animate()
plt.show()

Documentation

The official documentation : https://julkaar9.github.io/pynimate/

License

MIT License (MIT)

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

pynimate-1.3.0.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

pynimate-1.3.0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file pynimate-1.3.0.tar.gz.

File metadata

  • Download URL: pynimate-1.3.0.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pynimate-1.3.0.tar.gz
Algorithm Hash digest
SHA256 ab29066f5e305979802e15716353d0c0af7fee2cd78845e95cace74d81727ed3
MD5 a5f91b6093f418443e07306fd1a34eb2
BLAKE2b-256 df57add7081349fc87fcd4789852d5ceca087e87e6a4a123f75163e1d34adb50

See more details on using hashes here.

File details

Details for the file pynimate-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: pynimate-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pynimate-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 962d180022720433b3faa271a9bfc0fe7c7e00a820fc806d6afb9d8962f01c95
MD5 9d06f53ca0bbeac0697a4a1cf82cb813
BLAKE2b-256 b2ca62fa737d913de3f9532c3f8349dc4a8de53374e978efbaaa555ba84f5be4

See more details on using hashes here.

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