What I Do

Software Development

My work really doesn't lend itself to a visual portfolio, but for a small sample of the kind of things I do, you can have a look below.

The code block on the left, incomplete as it is, is a snippet of a Python method I use to generate the standings you see on the right.  

That page is on a private fantasy hockey pool site, using a WordPress plugin I built, and accessing a Python API that contains the noted code, and much more. Also on the right you can see another sample page from the site, displaying team rosters, again using the API

A very small sampling of what I do.

def build_standings(self, league):
    """
    Builds custom fantasy hockey standings for a league

    Args:
        league (str): The league to build standigs for

    Returns:
        dict: Dictionary of the standings data
    """
    league_categories = self.get_league_categories(league)
    df = pd.DataFrame()
    category_names = []
    for category in league_categories:
        category_names.append(category["name"])
        for stat in category["stats"]:
            if Stat(stat).name not in df.columns:
                df = pd.concat(
                    [
                        df,
                        self.get_stat(
                            stat,
                            league,
                            self.POSITIONS[category["type"]]
                        )
                    ],
                    ignore_index=True,
                    sort=True
                ).groupby(
                    ["franchise_id", "name", "nickname", "user_id", "logo"],
                    as_index=False
                ).sum()
Fantasy Hockey Standings
Fantasy Hockey Standings
Team Roster
Team Roster