**Examples**

In [1]:

```
import numpy as np
import pandas as pd
```

In [2]:

```
df = pd.DataFrame({'X': range(4), 'Y': range(2, 6)})
df
```

Out[2]:

In [3]:

```
df.transform(lambda x: x + 1)
```

Out[3]:

Even though the resulting DataFrame must have the same length as the input DataFrame,

it is possible to provide several input functions:

In [4]:

```
s = pd.Series(range(4))
s
```

Out[4]:

In [5]:

```
s.transform([np.sqrt, np.exp])
```

Out[5]: