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 | |
csv = pd.read_csv('https://raw.githubusercontent.com/corintxt/AFP_data/refs/heads/main/data/US_VEP_Turnout_Rates_v1.1.csv') | |
df = csv[['YEAR','TURNOUT_RATE_PRES']] \ | |
.dropna()\ | |
.query('YEAR >= 1900') | |
### DRAW THE CHART |
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
REM Navigate Chrome on macOS to The Verge website | |
DELAY 2000 | |
ATTACKMODE HID STORAGE VID_05AC PID_0220 MAN_HAK5 PROD_DUCKY SERIAL_1337 | |
DELAY 1000 | |
REM Open Launcher | |
F4 | |
DELAY 500 | |
REM Launch Chrome | |
STRING Chrome | |
DELAY 200 |
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
q = text( | |
''' | |
SELECT * | |
FROM "facebook-timeline" ft | |
LIMIT 10000 | |
''' | |
) | |
df = pd.DataFrame() | |
for idx, chunk in enumerate( |
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
from http.server import BaseHTTPRequestHandler, HTTPServer | |
HOST_NAME = 'localhost' | |
PORT_NUMBER = 4000 | |
my_database = {} | |
class DatabaseHandler(BaseHTTPRequestHandler): | |
def do_HEAD(self): | |
self.send_response(200) |