Answer to Question #318956 in Python for Ankush

Question #318956

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

1
Expert's answer
2022-03-27T09:05:38-0400

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS