Tutorials References Exercises Sign Up Menu
Create Website Get Certified Pro

Pandas DataFrame iat Property

❮ DataFrame Reference


Return the value at row position 2 and column position 1:

import pandas as pd

data = {
  "firstname": ["Sally", "Mary", "John"],
  "age": [50, 40, 30],
  "qualified": [True, False, False]

df = pd.DataFrame(data)
print(df.iat[2, 1])
Try it Yourself »

Definition and Usage

The iat property gets, or sets, the value of the specified position.

Specify both row and column with a number representing the position.


dataframe.iat[row, column)


Parameter Description
row Required. A number specifying the row

column Required. A number specifying the column columns

Return Value

The value of the specified cell.

❮ DataFrame Reference