Skip to main content

A package for people new to statistics and Python.

Project description

StatWrap

This is a package meant for intro statistics students who are also new to Python, or at least its statistical libraries.

Different submodules adopt different conventions. The fpp submodule corresponds to Statistics by Freedman, Pisani, and Purves while the sheets module corresponds to Google Sheets conventions.

IPython Usage

The target user will use this package in a Google Colab or Jupyter notebook. Install with !pip install statwrap.

Then import the package and use a magic command to load the desired module.

import statwrap
%use_fpp

%use_fpp imports the functions that adhere to the conventions of Freedman, Pisani, and Purves. This will also overwrite and introduce new pandas methods for working with DataFrames and Series. %use_sheets is similar, but it borrows the conventions of Google Sheets. %use_all loads in both fpp and sheets conventions as well as user experience functions such as a data upload widget.

Design and Style

Python is known for its simplicity and readability. Still, someone new to statistics and programming might find themselves intimidated by the many imports necessary to work with data and run statistical tests. A user will find conflicting defaults across different packages and terminology can differ. This package aims to reduce the mental overhead required to juggle the notation they find in a textbook with formula names in Google Sheets and what they find in packages like NumPy, pandas, scipy, and statsmodels.

The design principles of this package are mostly the design principles of Python. However, we don't always adhere to the principle that "explicit is better than implicit" and we prefer convention to configuration, with the configuration being done once with a magic command like %use_fpp.

Bugs and Feature Requests

If you find a bug or think of a useful feature, please open an issue here on Github, please see our Contributors Guide for more details.

Contribute

If you are interested in using this in your classroom or contributing, please reach out to me at alexander.clark@columbia.edu. For more detailed guidelines on how to contribute, please refer to our Contributors Guide.

This project is sponsored by Zulip.

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

statwrap-0.3.0.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

statwrap-0.3.0-py3-none-any.whl (39.3 kB view details)

Uploaded Python 3

File details

Details for the file statwrap-0.3.0.tar.gz.

File metadata

  • Download URL: statwrap-0.3.0.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.24

File hashes

Hashes for statwrap-0.3.0.tar.gz
Algorithm Hash digest
SHA256 268d7fba5affa9e9d0d0de7eec57003d88dbc674dca86a2fd2d31e18d214beeb
MD5 89e313a467238c50cc25ac5d2527b9f5
BLAKE2b-256 744c2de656aff7f699df8468ad03d2007ffc0fc843128ff5a63cda4af2cf36e4

See more details on using hashes here.

File details

Details for the file statwrap-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: statwrap-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 39.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.24

File hashes

Hashes for statwrap-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5715eba86970d1d845ef4cbc3e2f49423307f0b35ed4c650296a7b9e75344c98
MD5 c40982063aff79244321833f3576c3be
BLAKE2b-256 4c7fa83b20283f70a95b98b188eec53f90c04594ec0e2afae6fbedb0c5cfc535

See more details on using hashes here.

Supported by

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