Expected Output:
Solution:
Print first five rows
import pandas as pd df = pd.read_csv("D:\\Python\\Articles\\pandas\\automobile-dataset\\Automobile_data.csv") df.head(5)
Print last five rows
import pandas as pd df = pd.read_csv("D:\\Python\\Articles\\pandas\\automobile-dataset\\Automobile_data.csv") df.tail(5)
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Solution:
Print first five rows
Print last five rows
need an explanation for this answer? contact us directly to get an explanation for this answer