Examples

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

Get value at specified row/column pair:

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

Set value at specified row/column pair:

In [4]:
df.iat[1, 2] = 20
df.iat[1, 2]
Out[4]:
20

Get value within a series:

In [5]:
df.loc[0].iat[1]
Out[5]:
3