Pandas DF Mean and Median of a Column

Import libs and get mean or median of a column:

import pandas as pd
import numpy as np

df = pd.read_csv("/file.csv")

# return mean (average) of col1

# return median of col1

Further, you can get the descriptive summaries of each column by following this guide.

Leave a Reply