Open imsanjoykb opened 2 years ago
check your dataset and if your dataset has a column named car then the code will run perfectly try the exact name of the column in your dataset the error will go
import pandas as pd from matplotlib import pyplot as plt
data = pd.read_csv(r"cars.csv") data.head() df = pd.DataFrame(data)
name = df['cars'].head(12) price = df['cyl'].head(12)