Eda, Exploratory Data Analysis, Pandas, Python.
# Get median value non_distinct_val_list = sorted(df[column].dropna().tolist()) len_non_d_list = len(non_distinct_val_list) if len(non_distinct_val_list) == 0: median = None else: median = non_distinct_val_list[len_non_d_list//2] # Get average value if value is number if