Skip to main content

A simple library for basic statistical calculations

Project description

Simple Stats

A simple Python library for basic statistical calculations.

Features

  • Calculate mean
  • Calculate median
  • Calculate mode
  • Calculate standard deviation

Installation

You can install the library using pip:

bash pip install .

Usage

from common_stats import mean, median, mode, standard_deviation

data = [1, 2, 3, 4, 5] print("Mean:", mean(data)) print("Median:", median(data)) print("Mode:", mode(data)) print("Standard Deviation:", standard_deviation(data)) create one more file USAGE.md . We will use this show to library discription in pypi.

Usage

To use the common_stats package, you can utilize its various statistical functions such as mean, median, mode, and standard_deviation. Below is a quick example demonstrating how to use these functions.

Example Code

python from common_stats import mean, median, mode, standard_deviation

data = [1, 2, 3, 4, 5]

print("Mean:", mean(data)) print("Median:", median(data)) print("Mode:", mode(data)) print("Standard Deviation:", standard_deviation(data))

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

common_stats_vishishta-0.0.1.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file common_stats_vishishta-0.0.1.tar.gz.

File metadata

  • Download URL: common_stats_vishishta-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0a1

File hashes

Hashes for common_stats_vishishta-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0d9fac3d77e8870254febec2fd8699b3bb700bb9fb7a6eb25b07fa77cde409d5
MD5 41b5a140d56bd62773ce6fc0554c0186
BLAKE2b-256 d100ae9844b99ce7dc5899b158980010e2ee40eb195c4187830e654c19569d50

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