Tutorials References Exercises Videos Menu
Create Website Get Certified Upgrade

Pandas DataFrame iat Property

❮ DataFrame Reference


Example

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.


Syntax

dataframe.iat[row, column)

Parameters

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