df.loc [ 2 ] . at [ 'Q' ] 0 0 20 3 5 30 4 2 40 1 2 3 P Q R DataFrame df at [ 'Q' ] loc [ 2 ] row 2 column Q w3resource.com 5