indexes=[1,2,3,5,8]
cols=["country","province","region_1","region_2"]
x=df[cols].loc[indexes]
or x=df.loc[indexes,cols]
For further actions, you may consider blocking this person and/or reporting abuse
indexes=[1,2,3,5,8]
cols=["country","province","region_1","region_2"]
x=df[cols].loc[indexes]
or x=df.loc[indexes,cols]
For further actions, you may consider blocking this person and/or reporting abuse
CodePicker -
Yassine Sallami -
Brandon Collins -
Shagun Mistry -
Top comments (0)