text_html_output_1.png
import pandas as pd

data = pd.read_csv('../input/car-price-prediction/CarPrice_Assignment.csv')

df_cars = data.copy()

def check(df):
    l = []
    columns = df.columns
    for col in columns:
        dtypes = df[col].dtypes
        nunique = df[col].nunique()
        sum_null = df[col].isnull().sum()
        l.append([col, dtypes, nunique, sum_null])
    df_check = pd.DataFrame(l)
    df_check.columns = ['column', 'dtypes', 'nunique', 'sum_null']
    return df_check
check(df_cars)