Code/5-data-cleansing/clean_met.py
def column_info(data, column):
    """
    Print information about a column within the dataset
    """
    logging.info(f" {column} Columns ".center(30, "="))

    logging.info(data[column].value_counts())
    logging.info(f"\nUnique values {len(data[column].unique())}\n")
    logging.info(f"Null values {data[column].isnull().sum()}\n")

    Print information about a column within the dataset
    
Print information about a column within the dataset
Print information about a column within the dataset
def column_info(data, column):
    logging.info(f" {column} Columns ".center(30, "="))
    logging.info(data[column].value_counts())
    logging.info(f"\nUnique values {len(data[column].unique())}\n")
    logging.info(f"Null values {data[column].isnull().sum()}\n")
def column_info ( data , column ) : logging . info ( f" {column} Columns " . center ( 30 , "=" ) ) logging . info ( data [ column ] . value_counts ( ) ) logging . info ( f"\nUnique values {len(data[column].unique())}\n" ) logging . info ( f"Null values {data[column].isnull().sum()}\n" )
Print information about a column within the dataset
Print information about a column within the dataset
"""
    Print information about a column within the dataset
    """
data
column