Examples

In [1]:
import numpy as np
import pandas as pd
In [2]:
s = pd.Series([2, 3, 4, 5])
s
Out[2]:
0    2
1    3
2    4
3    5
dtype: int64

In [ ]:
s.add_suffix('_item')
In [4]:
df = pd.DataFrame({'X': [2, 3, 4, 5],  'Y': [4, 5, 6, 7]})
df
Out[4]:
X Y
0 2 4
1 3 5
2 4 6
3 5 7
In [5]:
df.add_suffix('_col')
Out[5]:
X_col Y_col
0 2 4
1 3 5
2 4 6
3 5 7