Examples

In [1]:
import numpy as np
import pandas as pd
In [2]:
df = pd.DataFrame([[2, 3, 4], [0, 5, 6], [20, 30, 40]],
                  columns=['P', 'Q', 'R'])
df
Out[2]:
P Q R
0 2 3 4
1 0 5 6
2 20 30 40

Get value at specified row/column pair

In [3]:
df.iat[2, 2]
Out[3]:
40

Set value at specified row/column pair

In [4]:
df.iat[2, 2] = 10
In [5]:
df.iat[2, 2]
Out[5]:
10

Get value within a series

In [6]:
df.loc[0].iat[2]
Out[6]:
4