**Examples**

In [1]:

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

In [2]:

```
df = pd.DataFrame([(.24, .34), (.02, .70), (.64, .04), (.24, .20)],
columns=['deers', 'goats'])
df
```

Out[2]:

By providing an integer each column is rounded to the same number of decimal places:

In [3]:

```
df.round(1)
```

Out[3]:

With a dict, the number of places for specific columns can be specified with the column

names as key and the number of decimal places as value:

In [4]:

```
df.round({'deers': 1, 'goats': 0})
```

Out[4]:

Using a Series, the number of places for specific columns can be specified with the column

names as index and the number of decimal places as value:

In [5]:

```
decimals = pd.Series([0, 1], index=['deers', 'goats'])
df.round(decimals)
```

Out[5]: