An easy-to-use statistics package for Python 3.
Project description
Welcome to EzPyZ! This project seeks to provide an easy-to-use statistical library for Python 3. This project was inspired in concept by the ez library available in R.
This project is under development, and will likely not work as intended. You have been warned.
Installation
This package is installed using pip. Pip should come pre-installed with all versions of Python for which this package is compatible. Nonetheless, if you wish to install pip, you can do so by downloading get-pip.py and running that python file (Windows/MacOS/Linux/BSD), or you can run the following command in terminal (Linux/BSD):
sudo apt install python3-pip
If you’re using brew (most likely for MacOS), you can install pip (along with the rest of Python 3) using brew:
brew install python3
Note: The creator of this software does not recommend the installation of python or pip using brew, and instead recommends that Python 3.7+ be installed using the installation candidates found on python.org, which include pip by default.
Using Pip to install from PyPi
Fetching this repository from PyPi is the recommended way to install this package. From your terminal, run the following command:
pip3 install EzPyZ
And that’s it! Now you can go right ahead to the quick-start guide!
Install from Source
Not a big fan of pip? Well, you’re weird, but weird is OK! I’ve written a separate script to help make installation from source as easy as possible. To start, download the installation script and run it:
wget https://raw.githubusercontent.com/EGuthrieWasTaken/EzPyZ/main/source_install.py
python3 source_install.py
After completing, the script will have downloaded the latest tarball release and extracted it into the working directory. Now, all you have to do is switch into the newly-extracted directory and run the install command:
cd EGuthrieWasTaken-EzPyZ-[commit_id]/
python3 setup.py install
Congratulations, you just installed EzPyZ from source! Feel free to check out the quick-start guide!
Quick-Start Guide
Now that you have the package installed, getting started with the package should be easy! You can start with importing the package and creating a DataFrame:
import EzPyZ as ez
# Create new dataframe.
raw_data = {
'height (cm)': [134, 168, 149, 201, 177],
'weight (kg)': [32.2, 64.3, 59.9, 95.4, 104.2]
}
df = ez.DataFrame(data=raw_data)
Already have a pandas.DataFrame object? Great! You can create an EzPyZ.DataFrame object with an existing pandas.DataFrame:
import EzPyZ as ez
import pandas as pd
# Create new dataframe.
raw_data = {
'height (cm)': [134, 168, 149, 201, 177],
'weight (kg)': [32.2, 64.3, 59.9, 95.4, 104.2]
}
pandas_df = pd.DataFrame(raw_data)
df = ez.DataFrame(data=pandas_df)
Of course, most of the time you will not be hard-coding your data directly. Fortunately this package comes with tools to help with that as well! Check it out:
import EzPyZ as ez
from EzPyZ.tools import read_file
df = ez.DataFrame(data=read_file("bmi_data.csv")) # A bmi_data.xlsx would also work here.
That should be enough to get you off the ground! To learn more, check out the documentation.
Documentation
Documentation for this project can be found on Read the Docs. Otherwise, feel free to browse the source code within the repository! It is (hopefully) well-documented…
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file EzPyZ-0.1.9.tar.gz
.
File metadata
- Download URL: EzPyZ-0.1.9.tar.gz
- Upload date:
- Size: 26.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c441d7242d1d9178a49d4893ac475e4a0787452c816d5f935e7765843e12968 |
|
MD5 | 805e29f2882225e05bd2e963f898fb32 |
|
BLAKE2b-256 | f29602ebfc4a64565eff66c1ae17e37ac2b756b3c33d30904209e60435d30066 |
File details
Details for the file EzPyZ-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: EzPyZ-0.1.9-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4751dbdd8a8d4b7bdbe26cb917a2a733ffdd73fd4b2c7cada9dbd1aa594b2422 |
|
MD5 | 9732b1dd196ef8025080809ace4c0403 |
|
BLAKE2b-256 | 1544beb13f8e0ee4ebd271102e0fba2e578dce231ae1a9ffa3d4429e46ce80da |