Skip to content

Instantly share code, notes, and snippets.

View reuven's full-sized avatar
💭
Teaching Python and data science around the world

Reuven M. Lerner reuven

💭
Teaching Python and data science around the world
View GitHub Profile
@reuven
reuven / setup-course.py
Created April 19, 2021 16:07
The script I use to set up a new course, along with a synchronized repo on GitHub for use with "gitautopush"
#!/usr/bin/env python3
import argparse
import shutil
import os
from github import Github
github_token = open('/Users/reuven/.github_token').read().strip()
parser = argparse.ArgumentParser()
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
1.63
0.46
0.87
2.13
1.4
1.4
1.8
11.9
1.27
0.6
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
1
1
1
1
1
1
1
4
1
Date,Open,High,Low,Close,Adj Close,Volume
2018-06-22,46.529999,46.537498,46.174999,46.230000,44.180878,108801600
2018-06-25,45.849998,46.230000,45.182499,45.542500,43.523846,126652400
2018-06-26,45.747501,46.632500,45.634998,46.107498,44.063797,98276800
2018-06-27,46.307499,46.820000,46.007500,46.040001,43.999287,101141200
2018-06-28,46.025002,46.552502,45.950001,46.375000,44.319439,69460800
2018-06-29,46.572498,46.797501,45.727501,46.277500,44.226257,90950800
2018-07-02,45.955002,46.825001,45.855000,46.794998,44.720829,70925200
2018-07-03,46.947498,46.987499,45.884998,45.980000,43.941952,55819200
2018-07-05,46.314999,46.602501,46.070000,46.349998,44.295551,66416800
@reuven
reuven / gist:2233782ba99e412efe79e0ccacfbe9bc
Created August 9, 2023 10:20
CSV of US economic indicators, from Wikipedia
Year GDP (in Bil. US$PPP) GDP per capita (in US$ PPP) GDP (in Bil. US$nominal) GDP per capita (in US$ nominal) GDP growth (real) Inflation rate (in Percent) Unemployment (in Percent) Government debt (in % of GDP)
1980 2857.3 12552.9 2857.3 12552.9 -0.3% 13.5% 7.2%
1981 3207.0 13948.7 3207.0 13948.7 2.5% 10.4% 7.6%
1982 3343.8 14405.0 3343.8 14405.0 -1.8% 6.2% 9.7%
1983 3634.0 15513.7 3634.0 15513.7 4.6% 3.2% 9.6%
1984 4037.7 17086.4 4037.7 17086.4 7.2% 4.4% 7.5%
1985 4339.0 18199.3 4339.0 18199.3 4.2% 3.5% 7.2%
1986 4579.6 19034.8 4579.6 19034.8 3.5% 1.9% 7.0%
1987 4855.3 20001.0 4855.3 20001.0 3.5% 3.6% 6.2%
1988 5236.4 21376.0 5236.4 21376.0 4.2% 4.1% 5.5%