Eda, Exploratory Data Analysis, Pandas, Python.
df[col_name].isnull().sum() num_of_non_nulls = df[col_name].notnull().sum() num_of_distinct_values = df[col_name].nunique() if num_of_distinct_values <= 10: distinct_values_counts = df[col_name].value_counts().to_dict() else: top_10_values_counts = df[col_name].value_counts().head(10).to_dict()