image_output_1.png
import pandas as pd

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

df_cars = data.copy()

df_cars.isnull().sum()

df_cars.duplicated().sum()

df_cars.columns

df_cars.drop('car_ID', axis=1, inplace=True)

df_cars.CarName.unique()

df_cars.CarName.unique()

categorical_cols = df_cars.select_dtypes(include=['object']).columns

for i in categorical_cols:
    print(i, 'unique values')
    print('-----------------------------------')
    print(df_cars[i].unique())
    print('-----------------------------------------------------------------------------')