Skip to main content

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.

Metadata

Release files for StatWrap 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for StatWrap 0.3.2
File Size Uploaded Provenance Actions
statwrap-0.3.2.tar.gz 44.9 kB Without provenance Details for statwrap-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for StatWrap 0.3.2
File Interpreter ABI Platform Actions
statwrap-0.3.2-py3-none-any.whl Python 3 none any Details for statwrap-0.3.2-py3-none-any.whl

Total release size: 95.7 kB

Release files / statwrap-0.3.2.tar.gz

Download URL statwrap-0.3.2.tar.gz
Size 44.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2616087e6c5afc6e4074ebe037ffa081f25a34fb4ade737bdb7a52ab468a2998
BLAKE2b-256 checksum
How to use checksums
2a36b0e007cc757d0e04a4a8aed29bcaf4a5adfca2633022c2c9cd6222330cd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / statwrap-0.3.2-py3-none-any.whl

Download URL statwrap-0.3.2-py3-none-any.whl
Size 50.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b782a7886901cea5c86fa408bbe3228196f736b2d06720048dae7ff3e0f48fb0
BLAKE2b-256 checksum
How to use checksums
9de182ea8c450a3a70251d6934d51f64501add49b5b77e8527ab5c04b6d704eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for StatWrap 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page