Python Dataframe Assignment No 1 - Answerkey
Python Dataframe Assignment No 1 - Answerkey
ASSIGNMENT NO 1
For this assignment, download the Automobile Dataset. This Automobile Dataset has
a different characteristic of an auto such as body-style, wheel-base, engine-type, price,
mileage, horsepower and many more.
Question 1: From given data set print first and last five rows
import pandas as pd
df = pd.read_csv("E:\\Automobile_data.csv")
print(df.head(5))
import pandas as pd
df = pd.read_csv("E:\\Automobile_data.csv")
print(df.tail(5))