subset row r
# df[row,column]
df[1, ] # select first row and all columns from df
df[ ,8] # select all rows for column 8 from df
df[2,5] # select row 2, column 5 from df
df[1:5, ] # select rows 1 to 5 and all columns from df
subset row r
# df[row,column]
df[1, ] # select first row and all columns from df
df[ ,8] # select all rows for column 8 from df
df[2,5] # select row 2, column 5 from df
df[1:5, ] # select rows 1 to 5 and all columns from df
how to get a row of a dataframe with subset columns in python
df.iloc[1:3, 5:7]
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us