This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from espn_api.football import League | |
ESPN_S2 = os.getenv("ESPN_S2") | |
SWID = os.getenv("SWID") | |
LEAGUE_ID = os.getenv("LEAGUE_ID") | |
def get_drafted_players(league): | |
all_picks = league.draft | |
print(f"There were {len(all_picks)} picks in your draft") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am jchaskell on github. | |
* I am jchaskell (https://keybase.io/jchaskell) on keybase. | |
* I have a public key ASDOb-SgASnf-VMI3bKzfMprRvxQqWSs3l8sTb9FaoMP1go | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>States' Trade Relationship with China</title> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script> | |
<style type="text/css"> | |
body { | |
background-color: white; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>States' Trade Relationship with China</title> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script> | |
<style type="text/css"> | |
body { | |
background-color: white; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>States' Trade Relationship with China</title> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script> | |
<style type="text/css"> | |
body { | |
background-color: white; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>States' Trade Relationship with China</title> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script> | |
<style type="text/css"> | |
body { | |
background-color: #ddddff; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Loading CSV Data with D3</title> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script> | |
</head> | |
<body> | |
<svg width="500" height="200"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
state | year | exports_total | imports_total | exports_china | imports_china | GDP_millions | |
---|---|---|---|---|---|---|---|
Alabama | 2008 | 15879048527 | 15908606971 | 817147134 | 1458450834 | 173712 | |
Alabama | 2009 | 12354803017 | 12242410477 | 801095298 | 1402622152 | 169385 | |
Alabama | 2010 | 15495257436 | 14899354103 | 1910683193 | 1644559221 | 176355 | |
Alabama | 2011 | 17927675723 | 17441393415 | 2337076737 | 1945795153 | 182395 | |
Alabama | 2012 | 19576975820 | 18337957524 | 2389479073 | 1957654938 | 186960 | |
Alabama | 2013 | 19293065760 | 18940617363 | 2468189824 | 1973265603 | 194671 | |
Alabama | 2014 | 19439656976 | 22210087795 | 3126670408 | 2033874199 | 199440 | |
Alaska | 2008 | 3541796749 | 1707186170 | 733090679 | 114150713 | 54853 | |
Alaska | 2009 | 3270429748 | 1242286705 | 586229677 | 54547109 | 49655 |