text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

car = pd.read_csv('/kaggle/input/car-15/cardata.csv')

car.columns

car.isnull().sum()

car.replace({'Fuel_Type': {'Petrol': 0, 'Diesel': 1, 'CNG': 2}}, inplace=True)
car.replace({'Seller_Type': {'Dealer': 0, 'Individual': 1}}, inplace=True)
car.replace({'Transmission': {'Manual': 0, 'Automatic': 1}}, inplace=True)

corr = car.corr()

sns.heatmap(corr, annot=True, cmap='crest')
plt.show()