https://github.com/math2001/datahelper
A python little program to help with these basic take-ages values (median, Q1, frequency table, etc)
https://github.com/math2001/datahelper
Last synced: 20 days ago
JSON representation
A python little program to help with these basic take-ages values (median, Q1, frequency table, etc)
- Host: GitHub
- URL: https://github.com/math2001/datahelper
- Owner: math2001
- License: mit
- Created: 2017-03-24T06:48:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-24T20:51:36.000Z (over 9 years ago)
- Last Synced: 2025-02-24T13:15:24.438Z (over 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# datahelper
A simple python package that provide a single class to save you a fair bit of time (at least it's
the case for me :smiley:)
Here's how it works:
```python
from datahelper import Data
data = Data(1, 3, 4, 6, 3, 6, 8, 3)
print(data.average) # 4.25
print(data.median) # 5.0
print(data.range) # 7
print(data.frequency_table)
# | x | f | fx | Cumu. f |
# |------|------|------|---------|
# | 1 | 1 | 1 | 1 |
# | 3 | 3 | 9 | 4 |
# | 4 | 1 | 4 | 5 |
# | 6 | 2 | 12 | 7 |
# | 8 | 1 | 8 | 8 |
```