Projekte
Auf GitHub ansehen
julkaar9/pynimate
Über uns
Python package for statistical data animations
Wissenschaft und TechnikGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
Original
Pynimate
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
Ähnliche Projekte entdecken
Wird geladen…