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
df['col1'].mean()
# return median of col1
df['col1'].median()
Further, you can get the descriptive summaries of each column by following this guide.
Recent Comments