Skip to content

mariohbrino/python-analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Pandas Example

Create virtual environment and activate. Then, install python dependencies.

python3 -m venv .venv
source .venv/bin/activate
pip install -e .

Run application.

analyze get --output results/get_results.csv
analyze find --column sex --value Male --output results/filter_results.csv
analyze group_by --columns sex age --output results/group_results.csv
analyze order_by --column age --arrange id age sex name --ascending --output results/order_results.csv

Linting check and format for python using Ruff.

ruff check .
ruff format .

Run tests.

python -m pytest -v --cov-report term-missing --cov --cov-fail-under=95

Use flag --cov to show test coverage.

About

Simple Example of Wrapping Python Pandas

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published