# pandas.Series.div¶

Return Floating division of series and other, element-wise (binary operator truediv).

Equivalent to `series / other`

, but with support to substitute a fill_value for
missing data in one of the inputs.

- param other
Series or scalar value

- param fill_value
- None or float value, default None (NaN)
Fill existing missing (NaN) values, and any new element needed for successful Series alignment, with this value before computation. If data in both corresponding Series locations is missing the result will be missing.

- param level
- int or name
Broadcast across a level, matching Index values on the passed MultiIndex level.

- return
Series The result of the operation.

## Limitations¶

Parameter

`axis`

is supported only with default value`0`

.Parameters

`level`

and`fill_value`

are supported only with default value`None`

.

## Examples¶

```
import pandas as pd
from numba import njit
@njit
def series_div():
s1 = pd.Series([1, 2, 4])
s2 = pd.Series([4, 4, 16])
out_series = s1.div(s2)
return out_series # Expect series of 0.25, 0.50, 0.25
print(series_div())
```

```
$ python ./series/series_div.py
0 0.25
1 0.50
2 0.25
dtype: float64
```

See also

- Series.rdiv
Return Floating division of series and other, element-wise (binary operator rtruediv).