how to selecct columns using loc method on pandas code example Example: isolate row based on index pandas dfObj.iloc[: , [0, 2]]