Q. How are following two codes similar of different? What output will they produce?
(i)
df = pd.read_csv("data.csv", nrows = 5)
print(df)
(ii)
df = pd.read_csv("data.csv")
print(df)
Answer =
First statement reading 5 rows of csv file but second statement reading whole csv file.
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )