This file contains hidden or 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
| // Go scan sheet / Cheat Sheet | |
| // main package | |
| package main | |
| // imports | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "os" |
This file contains hidden or 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
| function yeet(error) { | |
| throw error; | |
| } | |
| const drag = { | |
| log: (...args) => console.log(...args), | |
| error: (...args) => console.error(...args), | |
| warn: (...args) => console.warn(...args), | |
| info: (...args) => console.info(...args) | |
| }; |
This file contains hidden or 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 pandas as pd | |
| import matplotlib.pyplot as plt | |
| data1 = pd.read_csv('MEHOINUSA646N.csv') | |
| data2 = pd.read_csv('ASPUS.csv') | |
| data1['DATE'] = pd.to_datetime(data1['DATE']) | |
| data2['DATE'] = pd.to_datetime(data2['DATE']) | |
| fig, ax1 = plt.subplots(figsize=(12, 6)) | |
| ax1.plot(data1['DATE'], data1['MEHOINUSA646N'], label='Median Household Income', color='blue') |
This file contains hidden or 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 pandas as pd | |
| import matplotlib.pyplot as plt | |
| # load | |
| # https://fred.stlouisfed.org/series/IHLIDXUSTPHUMARESO | |
| df_hr = pd.read_csv('IHLIDXUSTPHUMARESO.csv', parse_dates=['DATE']) | |
| # https://fred.stlouisfed.org/series/IHLIDXUSTPSOFTDEVE | |
| df_software = pd.read_csv('IHLIDXUSTPSOFTDEVE.csv', parse_dates=['DATE']) | |
| # https://fred.stlouisfed.org/series/IHLIDXUSTPPROJMANA | |
| df_pm = pd.read_csv('IHLIDXUSTPPROJMANA.csv', parse_dates=['DATE']) |
OlderNewer