Learn practical skills, build real-world projects, and advance your career
Created 2 years ago
import pandas as pd
df=pd.read_csv('car data.csv')
df.shape
(301, 9)
print(df['Seller_Type'].unique())
print(df['Fuel_Type'].unique())
print(df['Transmission'].unique())
print(df['Owner'].unique())
['Dealer' 'Individual']
['Petrol' 'Diesel' 'CNG']
['Manual' 'Automatic']
[0 1 3]
##check missing values
df.isnull().sum()
Car_Name 0
Year 0
Selling_Price 0
Present_Price 0
Kms_Driven 0
Fuel_Type 0
Seller_Type 0
Transmission 0
Owner 0
dtype: int64