I want to select A,B,C columns row where D columns value is 1. in sql i can use this :
select A,B,C
from table
where D = 1
How can i convert this in pandas dataframe?
I want to select A,B,C columns row where D columns value is 1. in sql i can use this :
select A,B,C
from table
where D = 1
How can i convert this in pandas dataframe?
you can use another way and don't use loc
like below:
df[df['D']==1][['A','B','C']]