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
Mike Young -
Jonah Katz -
João Vitor -
Kunal Das -
Top comments (0)