Examples#
import pandas as pd
import stakepd as spd # importing stakepd adds these methods to pandas objects
Decimal to American:
decimal_odds = pd.Series([2.0, 1.5, 3.0])
american_odds = decimal_odds.convert(from_type = 'decimal', to_type = 'american')
print(american_odds)
Output:
0 100.0
1 -200.0
2 200.0
dtype: float64