Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas dataframe extract value

# extract value from `n`th row, `m`th column
df.iat[n,m]

# extract value from last row, 4th column
df.iat[-1,3]

# extract value from last row, last column
df.iat[-1,-1]
 
PREVIOUS NEXT
Tagged: #pandas #dataframe #extract
ADD COMMENT
Topic
Name
4+3 =