Skip to content

A Python program to compute the mean, variance, standard deviation, maximum, minimum, and sum of a given list, both flattened and along specified axes using Numpy.

License

Notifications You must be signed in to change notification settings

mrarvind90/fcc-mean-var-std-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

freeCodeCamp Social Banner

Python 3 Numpy

Mean-Variance-Standard Deviation Calculator

License: MIT Code Style: black

A Python program to compute the mean, variance, standard deviation, maximum, minimum, and sum of a given list, both flattened and along specified axes using Numpy.

Technologies Used

  • numpy

Features

  • Calculate mean, variance, standard deviation, max, min, and sum of a list.
  • Supports calculations along axis=0 and axis=1.
  • Handles ValueError gracefully for lists with less than 9 numbers.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.10 or higher installed on your system. You can download Python from python.org.
  • Poetry 1.6.1 installed on your system. You can install Poetry from python-poetry.org

Installation and Setup

Follow these steps to install and set up Poetry for this project:

  1. Install Poetry: Poetry is a Python package manager that simplifies dependency management and virtual environments. You can install Poetry by following their guide here.
  2. Clone the repository
    git clone git@github.com:mrarvind90/fcc-mean-var-std-calculator.git
  3. Change into the Project Directory
    cd fcc-mean-var-std-calculator
  4. Install Dependencies:
    poetry install
  5. Run the Project:
    poetry run python3 main.py 

License

This project is licensed under the MIT License. See the LICENSE file for details.

Code Style

We follow the black code style for this project. You can format your code using:

black .

About

A Python program to compute the mean, variance, standard deviation, maximum, minimum, and sum of a given list, both flattened and along specified axes using Numpy.

Topics

Resources

License

Stars

Watchers

Forks

Languages