8. loc Vs. iloc Pandas Data Frame | Python Pandas Tutorial

8. loc Vs. iloc Pandas Data Frame | Python Pandas Tutorial

In this video, I have Compared loc Vs. iloc very clearly with many practical examples. loc Vs. iloc Pandas DataFrame | Python Pandas Tutorial (2020) Data Frame 1 ------------------------------------------------- import pandas as pd dict1 ={'Name':['Priyang','Aadhya','Krisha','Vedant','Parshv', 'Mittal','Archana'], 'Marks':[98,89,99,87,90,83,82], 'Grades':['AA','AB','AA','AB','AC','BA','BB'] } df1=pd.DataFrame(dict1) ------------------------------------------------- Data Frame 2 ------------------------------------------------- import pandas as pd dict1 ={'Name':['Priyang','Aadhya','Krisha','Vedant','Parshv', 'Mittal','Archana'], 'Marks':[98,89,99,87,90,83,82], 'Grades':['AA','AB','AA','AB','AC','BA','BB'] } df1=pd.DataFrame(dict1,index=['stu1','stu2','stu3','stu4','stu5', 'stu6','stu7']) ----------------------------------------------------------------------- loc Vs. iloc Pandas DataFrame | Python Pandas Tutorial (2020) If you enjoy these tutorials, like the video, and give it a thumbs up and also share these videos with your friends and families if you think these videos would help him. Please consider clicking the SUBSCRIBE button to be notified of future videos. Thank you all for watching