Skip to main content

Better frequency and crosstab tables.

Project description

freqit

Better frequency and crosstab tables.

This is a work in progress meant to provide better functionality and more options in constructing frequency tables for data analysis. Currently one-way tables are supported, crosstabulation tables to come in the future.

The package takes a pandas series and outputs a frequency table for the values within the column.

Freqit requires that pandas and numpy are installed in the operating environment.

Installation:
pip install freqit

Use:

from freqit.oneway import freqtable
import pandas as pd

iris = pd.read_csv('https://gist.githubusercontent.com/curran/a08a1080b88344b0c8a7/raw/d546eaee765268bf2f487608c537c05e22e4b221/iris.csv')

freqtable(iris['species'])

Returns:

value count percentage cum_total cum_percentage
setosa 50 33.333333 50 33.333333
versicolor 50 33.333333 100 66.666667
virginica 50 33.333333 150 100.000000

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

freqit-1.0.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

freqit-1.0-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page