Question #318956

How to select the rows from 20th index till 200th index(exclusive),and columns from 2nd index till 15th index value

Expert's answer

Columns

df.loc[:,2:16]


Rows

df.iloc[20:201,:]

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS