10. loc & iloc With Boolean Array | Python Pandas Tutorial

Published: 08 October 2020
on channel: Data Thinkers
1,001
25

In this, Video I have explained loc & iloc With Boolean Array very clearly.
You can easly understant it.
Please Remember some points:


Boolean array size must be the same as your DataFrame Size.
This concept is very useful in filtering the data frame. That I'm going to cover in the next video.
------------------------------------------------------------------------------

DataFrame
------------------------------------------------------------------------------
import pandas as pd
dict1 ={'Name':['Priyang','Aadhya','Krisha','Vedant','Parshv'],
'Marks':[98,89,99,87,90],
'Grades':['AA','AB','AA','AB','AC']
}
df1=pd.DataFrame(dict1,index=['stu1','stu2','stu3','stu4','stu5'])
df1
----------------------------------------------------------------------------------





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