Skip to main content

Pynimate

PyPI Downloads Tests License Code style: black

Python package for statistical data animations.

Installation

with pip

Pynimate is available at pypi

pip install pynimate

Geospatial features

The Choropleth and Geodatafier classes require GeoPandas. Install pynimate with the geo extra:

pip install "pynimate[geo]"

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)

Release files for pynimate 1.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pynimate 1.4.2
File Size Uploaded
pynimate-1.4.2.tar.gz 32.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pynimate 1.4.2
File Interpreter ABI Platform
pynimate-1.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 63.6 kB

Release files / pynimate-1.4.2.tar.gz

Download URL pynimate-1.4.2.tar.gz
Size 32.5 kB
Tags Source
SHA-256 checksum
How to use checksums
eb503f6ae29575f6cee4c69a08bddb4c9b29fdd6f790077d7972e76007fb9cc1
BLAKE2b-256 checksum
How to use checksums
79ddb7a72c5da772dff308aaa990f8cb876df695e1d5f3125ff2770240f93a77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / pynimate-1.4.2-py3-none-any.whl

Download URL pynimate-1.4.2-py3-none-any.whl
Size 31.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f183ef89ca3ec487dfb0c535d6bece0ce8ef864c7dc70ac8286d682fe7b7bb7a
BLAKE2b-256 checksum
How to use checksums
66dbdad6d06aa772a9ec8237fb47182d59952dc59fa2a6ee8ae68f680f81febf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

1.4.2 This release

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page