Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
79e7df4
add time_series module
MAfarrag Aug 24, 2024
165ddf9
add box plot
MAfarrag Aug 24, 2024
e0513ef
add box plot method
MAfarrag Aug 25, 2024
3a3f6a3
add missing pictures for the box plot docstring
MAfarrag Aug 25, 2024
304025b
add `calculate_whiskers`
MAfarrag Aug 25, 2024
d856aef
add `violin`
MAfarrag Aug 25, 2024
28a4ed5
correct pictures paths in docstring
MAfarrag Aug 25, 2024
152f3f1
add `raincloud` method
MAfarrag Aug 26, 2024
b21c07a
update docstring
MAfarrag Aug 26, 2024
d41b29b
create `_adjust_axes_labels` for axes labels
MAfarrag Aug 26, 2024
97f765c
rename the mean properties in the box plot
MAfarrag Aug 26, 2024
9f57366
add histogram
MAfarrag Aug 26, 2024
31ccf02
add docs for the timeseries module
MAfarrag Aug 27, 2024
52ea3e4
add docstring to the timeseries module
MAfarrag Aug 27, 2024
1c273c1
correct module name
MAfarrag Aug 27, 2024
b83e6be
update doc pictures
MAfarrag Aug 27, 2024
0efd04d
correct image name in docstring
MAfarrag Aug 27, 2024
bd967e8
correct image name in docstring
MAfarrag Aug 27, 2024
6eb5178
correct image name in docstring
MAfarrag Aug 27, 2024
1ba0f90
correct image paths in docstring
MAfarrag Aug 27, 2024
085404a
adjust the `_adjust_axes_labels` to be more generic
MAfarrag Aug 28, 2024
dd09eae
pass kwargs to the `_get_ax_fig` instead of individual parameters
MAfarrag Sep 6, 2024
bc788a6
remove un-necessary lines
MAfarrag Sep 6, 2024
e48f445
test histogram for 2d time series
MAfarrag Sep 7, 2024
fe8410c
the histogram returns the bin edges and number of values
MAfarrag Sep 7, 2024
3f8aed7
add missing docstring images
MAfarrag Sep 7, 2024
98e2b47
add xtick_labels to docstring in the `histogram`
MAfarrag Sep 7, 2024
e809a10
add type hint
MAfarrag Sep 7, 2024
673a761
add `rolling_statistics` method
MAfarrag Sep 8, 2024
69aafa3
fix the error caused by the _constructor method overrides the origina…
MAfarrag Sep 8, 2024
6cf2d9c
add test and docstring to the density method
MAfarrag Sep 8, 2024
7aa9f81
merge main
MAfarrag Jul 5, 2025
4f21535
update the time_series docs to follow the google style
MAfarrag Jul 5, 2025
de01ecc
add the feedstock repo to the readme file
MAfarrag Jul 5, 2025
a9c5362
clean README.md
MAfarrag Jul 5, 2025
424372b
fix docstring
MAfarrag Jul 5, 2025
471c329
update README.md
MAfarrag Jul 5, 2025
178030d
fix doctest in distributions.py
MAfarrag Jul 5, 2025
dd0ac83
add docstring to the density method
MAfarrag Jul 7, 2025
51acb6a
fix the doctest hook
MAfarrag Jul 7, 2025
9f34693
merge main
MAfarrag Jan 10, 2026
2523c52
bump: version 0.6.3 → 1.0.0
MAfarrag Jan 18, 2026
b3f28e1
update changelog on bump
MAfarrag Jan 18, 2026
41181ff
update lock file
MAfarrag Jan 18, 2026
4d790ca
reset version
MAfarrag Jan 18, 2026
d5af1ae
bump: version 0.6.3 → 0.7.0
MAfarrag Jan 18, 2026
7362b3b
Revert "bump: version 0.6.3 → 0.7.0"
MAfarrag Jan 18, 2026
5a7adb0
bump: version 0.6.3 → 0.6.4b0
MAfarrag Jan 18, 2026
5bde909
Revert "bump: version 0.6.3 → 0.6.4b0"
MAfarrag Jan 18, 2026
320a0a8
pin the release workflow to a tag for github-release/v1 compatibility
MAfarrag Jan 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Create GitHub Release with Commitizen
uses: Serapieum-of-alex/github-actions/actions/release/github@main
uses: Serapieum-of-alex/github-actions/actions/release/github@github-release/v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
release-branch: ${{ github.event.inputs.release-branch }}
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@
Current release info
====================

Repository: [GitHub](https://github.com/Serapieum-of-alex/statista)
conda-forge feedstock: [![Repo: statista-feedstock](https://img.shields.io/badge/repo‑statista--feedstock-blue)](https://github.com/conda-forge/statista-feedstock)
Documentation: [GitHub Pages](https://serapieum-of-alex.github.io/statista)

| Name | Downloads | Version | Platforms |
| --- |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| --- | --- |
| [![Conda Recipe](https://img.shields.io/badge/recipe-statista-green.svg)](https://anaconda.org/conda-forge/statista) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/statista.svg)](https://anaconda.org/conda-forge/statista) [![Downloads](https://pepy.tech/badge/statista)](https://pepy.tech/project/statista) [![Downloads](https://pepy.tech/badge/statista/month)](https://pepy.tech/project/statista) [![Downloads](https://pepy.tech/badge/statista/week)](https://pepy.tech/project/statista) ![PyPI - Downloads](https://img.shields.io/pypi/dd/statista?color=blue&style=flat-square) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/statista.svg)](https://anaconda.org/conda-forge/statista) [![PyPI version](https://badge.fury.io/py/statista.svg)](https://badge.fury.io/py/statista) [![Anaconda-Server Badge](https://anaconda.org/conda-forge/statista/badges/version.svg)](https://anaconda.org/conda-forge/statista) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/statista.svg)](https://anaconda.org/conda-forge/statista) [![Join the chat at https://gitter.im/Hapi-Nile/Hapi](https://badges.gitter.im/Hapi-Nile/Hapi.svg)](https://gitter.im/Hapi-Nile/Hapi?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |


conda-forge feedstock
=====================
[Conda-forge feedstock](https://github.com/conda-forge/statista-feedstock)

## Installation

### Conda (Recommended)
Expand Down Expand Up @@ -101,7 +100,7 @@ fig, ax = dist.plot()
### Extreme Value Analysis

```python
from statista.distributions import GEV, PlottingPosition
from statista.distributions import PlottingPosition

# Create a GEV distribution
gev_dist = Distributions("GEV", data)
Expand Down
Binary file added docs/_images/time_series/box_plot_1d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/time_series/box_plot_2d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/time_series/box_plot_axes-label.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/time_series/box_plot_color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/time_series/box_plot_notch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/time_series/density-1d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/time_series/density-2d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/time_series/histogram-2d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/time_series/histogram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/time_series/raincloud_1d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/time_series/rolling-statistics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/time_series/violin_1d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/time_series/violin_2d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/time_series/violin_2d_spacing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/time_series/violin_labels_titles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/time_series/violin_low_side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ nav:
- Installation: installation.md
- Reference:
- Distributions: reference/distributions-class.md
- Time Series: reference/time-series-class.md
- Extreme Value Analysis: reference/eva-class.md
- Descriptors: reference/descriptors-module.md
- Plot: reference/plot-class.md
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ tag_format = "$version"
changelog_file = "docs/change-log.md"
changelog_incremental = true
changelog_merge_prerelease = true
update_changelog_on_bump = true

[tool.commitizen.customize]
message_template = "{{change_type}}:{% if show_message %} {{message}}{% endif %}"
Expand Down
2 changes: 1 addition & 1 deletion src/statista/descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def rmse(obs: Union[list, np.ndarray], sim: Union[list, np.ndarray]) -> float:
>>> simulated = [1.1, 2.1, 2.9, 4.2, 5.2]
>>> rmse_value = rmse(observed, simulated)
>>> print(f"RMSE: {rmse_value:.4f}")
RMSE: 0.1483
RMSE: 0.1732

```
- Using numpy arrays:
Expand Down
4 changes: 2 additions & 2 deletions src/statista/distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2752,9 +2752,9 @@ def pdf(
Args:
parameters (Dict[str, float], optional):
if not provided, the parameters provided in the class initialization will be used.
- loc: [numeric]
- loc (numeric):
location parameter of the gumbel distribution.
- scale: [numeric]
- scale (numeric):
scale parameter of the gumbel distribution.
```python
{"loc": val, "scale": val}. default is None.
Expand Down
9 changes: 5 additions & 4 deletions src/statista/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from matplotlib.axes import Axes
from matplotlib.figure import Figure

XLABEL = "Actual data"

class Plot:
"""Visualization utilities for statistical distributions and analyses.
Expand Down Expand Up @@ -61,8 +62,8 @@ def pdf(
qx: np.ndarray,
pdf_fitted: Union[np.ndarray, list],
data_sorted: np.ndarray,
fig_size: Tuple = (6, 5),
xlabel: str = "Actual data",
fig_size: Tuple[float, float] = (6, 5),
xlabel: str = XLABEL,
ylabel: str = "pdf",
fontsize: int = 11,
) -> Tuple[Figure, Axes]:
Expand Down Expand Up @@ -159,7 +160,7 @@ def cdf(
data_sorted: np.ndarray,
cdf_weibul: np.ndarray,
fig_size: Tuple[float, float] = (6, 5),
xlabel: str = "Actual data",
xlabel: str = XLABEL,
ylabel: str = "cdf",
fontsize: int = 11,
) -> Tuple[Figure, Axes]:
Expand Down Expand Up @@ -264,7 +265,7 @@ def details(
cdf_fitted: Union[np.ndarray, list],
cdf: Union[np.ndarray, list],
fig_size: Tuple[float, float] = (10, 5),
xlabel: str = "Actual data",
xlabel: str = XLABEL,
ylabel: str = "cdf",
fontsize: int = 11,
) -> Tuple[Figure, Tuple[Axes, Axes]]:
Expand Down
Loading
Loading