README.md
Overview
Provides bookmaker odds prior to the start of the 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'
Pandas friendly
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/PgaOddsPreTournament')
df = pd.read_json( algo.pipe("winner").result , orient='split' )