Code/5-data-cleansing/clean_met.py
def nulls_info(data):
    """
    Print total number of nulls by columns, and percentage of each column.
    """
    logging.info(" Null Columns ".center(30, "="))

    nulls = pd.DataFrame(
        [data.isnull().sum(), data.isnull().mean()],
        index=["Total", "Percentage"])

    logging.info(nulls.T)

    Print total number of nulls by columns, and percentage of each column.
    
Print total number of nulls by columns, and percentage of each column.
Print total number of nulls by columns and percentage of each column .
def nulls_info(data):
    logging.info(" Null Columns ".center(30, "="))
    nulls = pd.DataFrame(
        [data.isnull().sum(), data.isnull().mean()],
        index=["Total", "Percentage"])
    logging.info(nulls.T)
def nulls_info ( data ) : logging . info ( " Null Columns " . center ( 30 , "=" ) ) nulls = pd . DataFrame ( [ data . isnull ( ) . sum ( ) , data . isnull ( ) . mean ( ) ] , index = [ "Total" , "Percentage" ] ) logging . info ( nulls . T )
Print total number of nulls by columns, and percentage of each column.
Print total number of nulls by columns and percentage of each column .
"""
    Print total number of nulls by columns, and percentage of each column.
    """
data