Access yourself and calibrate your knowledge Check our our courses →

News & Blog

Statistics for Free (1) – Use Python for Mean, Median & Mode

News & Blog

This is first video from the series named “Statistics for Free”. We will use Python to understand how to do entire statistics needed for Six Sigma projects using available codes.

Python codes for Central Tendency of Data

Codes are written as follows. Please copy, paste, change file location & names of discrete data columns from following codes

import numpy as np
import pandas as pd

TD=pd.read_excel(“D:/YB-Reference-Files/TwoDices-Cube.xlsx“)
TD.head()

TD.mean()

TD.median()

TD[‘Cube‘].mode()

TD[‘Cube‘].describe()

Note – Bold items need to be modified based on file location and name of column(s) of discrete data.