notbanker

notbanker / PgaOdds / 1.0.13

README.md

Overview

Provides bookmaker odds for current PGA Tournament

Input

Market (optional) string e.g. "winner", "top-5-finish", "enhanced-win-only"

Output

Returns JSONified pandas dataframe. Reconstruct via pandas read_json with orient set to 'split'

Python usage example

You have to configure authentication first via the Algorithmia CLI

import Algorithmia
import pandas as pd

apiKey = "YOUR_API_KEY"
client = Algorithmia.client(apiKey)
algo = client.algo('notbanker/PgaOdds/1.0.0')

df = pd.read_json( algo.pipe("winner").result  , orient='split' )