Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.7%) to scientific vocabulary
Keywords
Repository
1D and 2D histogram objects
Basic Info
Statistics
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 3
- Releases: 0
Topics
Metadata Files
README.md
Yet another histogram
bash
pip install yahist
Examples (API docs)
(static nbviewer if Binder is slow)
Overview
Histogram objects (1D and 2D) with easy manipulations (numpy), plotting (matplotlib), and fitting (scipy/iminuit).
```python import numpy as np from yahist import Hist1D
v = np.random.normal(0, 1, 1000)
h = Hist1D(v, bins=100, label="data").rebin(2).normalize()
h.plot(errors=True, ms=3)
h.fit("peak * np.exp(-(x-mu)2 / (2*sigma2))")
```

```python import pandas as pd
df = pd.DataFrame(np.random.normal(0, 1, size=(10000, 2)), columns=["A", "B"])
h = Hist2D(df, bins="30,-3,3", threads=4)
h.plot(logz=True, cmap="cividis")
h.profile("x").plot(errors=True, color="C1", marker=".", label="x-profile")
```

Much more functionality is showcased in the example notebook, including
* fitting (chi2 or likelihood)
* interactive plots (via bokeh)
* datetime inputs/axes
* rebinning/subsetting
* profiling/projecting 2D histograms
* acceleration of 1D/2D histogram creation with boost-histogram
* using the histogram as a lookup function
* serialization to/from json
...and more.
Owner
- Name: Nick Amin
- Login: aminnj
- Kind: user
- Location: Austin, TX
- Repositories: 91
- Profile: https://github.com/aminnj
@Soylent: sponsor me please
GitHub Events
Total
Last Year
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Nick Amin | a****j@g****m | 189 |
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 12
- Total pull requests: 4
- Average time to close issues: 1 day
- Average time to close pull requests: about 1 hour
- Total issue authors: 4
- Total pull request authors: 2
- Average comments per issue: 1.0
- Average comments per pull request: 1.25
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 3
- Average time to close issues: N/A
- Average time to close pull requests: about 1 hour
- Issue authors: 1
- Pull request authors: 2
- Average comments per issue: 1.0
- Average comments per pull request: 1.33
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- aminnj (9)
- mhl0116 (1)
- hswanson13 (1)
- jkguiang (1)
Pull Request Authors
- aminnj (4)
- jkguiang (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 2,480 last-month
- Total dependent packages: 0
- Total dependent repositories: 2
- Total versions: 45
- Total maintainers: 1
pypi.org: yahist
Yet another histogram object with numpy and matplotlib
- Homepage: https://github.com/aminnj/yahist
- Documentation: https://yahist.readthedocs.io/
- License: BSD
-
Latest release: 1.14.2
published almost 2 years ago
Rankings
Maintainers (1)
Dependencies
- boost-histogram >=1.0
- iminuit >=2
- matplotlib *
- numpy *
- plotly *
- scipy *
- x.strip *
- actions/checkout v2 composite
- actions/setup-python v2 composite