Can anyone explain me whats the Difference between data[0:4] and data.iloc[0:4] when i run these 2 commands iam reciving same output
Here is my code:-
import pandas as pd
data= pd.read_csv("C:/Users/Admin/PycharmProjects/pythonProject1/venv\Lib/site-packages/pandas/test.csv")
print(data[0:4])
print(data.iloc[0:4])