pybaseballdata.fantasy.ottoneu package

Module contents

class plyball.fantasy.ottoneu.Ottoneu(league_id)

Bases: object

league_transactions()

Get Transaction Log of Transaction of Players in Fantasy League.

Returns

DataFrame

player_details(player_id)

Process a individual players statistics

Parameters

player_id – Ottoneu Player ID

Returns

DataFrame

players(positions=None)

Get DataFrame of players for Players listed

Parameters
  • ottoneu_base_url – Ottoneu League URL [https://ottoneu.fangraphs.com/186]

  • positions – [‘All’, ‘C’, ‘1B’, ‘2B’, ‘3B’, ‘SS’, ‘OF’, ‘SP’, ‘RP’, ‘UTIL’]

Returns

dictionary consisting of various DataFrames of Players (and their Stats).

static process_player_page(soup, stat_type, league='MLB')

Process a Player’s page to extract stats using Beautiful Soup

Parameters
  • soup – BS4 Website

  • stat_type – ‘Pitching’ or ‘Batting’

  • league – ‘MLB’ or ‘MILB’

Returns

DataFrame