pandas.Series.odds(odds_type='decimal')
Convert implied probability to the specified odds type.
Parameters:
odds_type(str, optional): Type of odds to convert to. Supported values are'decimal','fractional', and'american'. Default is'decimal'.
Returns:
pandas.Series: Series of float odds inodds_typeformat.
Example:
import pandas as pd
import stakepd as spd
prob = pd.Series([0.5, 0.4])
odds_vals = prob.odds(odds_type='decimal')
print(odds_vals)
0 2.000000
1 2.500000
dtype: float64