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]],
                  index=[1, 2, 3], columns=['P', 'Q', 'R'])
df
Out[2]:
P Q R
1 0 3 4
2 0 5 2
3 20 30 40

Pandas: Dataframe - at.

Get value at specified row/column pair:

In [3]:
df.at[1, 'Q']
Out[3]:
3

Pandas: Dataframe - Get value at specified row/column pair.

Set value at specified row/column pair:

In [4]:
df.at[1, 'Q'] = 20
df.at[1, 'Q']
Out[4]:
20

Pandas: Dataframe - Set value at specified row/column pair.

Get value within a Series:

In [5]:
df.loc[2].at['Q']
Out[5]:
5

Pandas: Dataframe - Get value within a Series.