Skip to content

Instantly share code, notes, and snippets.

@soodoku
soodoku / bihar_jati_2022.csv
Last active November 2, 2023 23:45
Bihar Jati 2023
page क्र ० सं ० जाति आंकड़ा प्रतिशत ( % )
0 1 अघोरी 9039 0.0069 %
0 2 अदरखी 30857 0.0236 %
0 3 अबदल 11433 0.0087 %
0 4 अमात 285221 0.2182 %
0 5 अवध बनिया 41643 0.0319 %
0 6 असुर , अगरिया 7706 0.0059 %
0 7 इदरीसी या दर्जी ( मुस्लिम ) 329661 0.2522 %
0 8 ईटफरोश / ईटाफरोश / गदहेड़ी / ईटपज इब्राहिमी ( मुस्लिम ) 9462 0.0072 %
0 9 इसाई धर्मावलंबी ( हरिजन ) 9708 0.0074 %
@soodoku
soodoku / TrainingV3.ipynb
Created October 8, 2023 19:14
Facial Sentiment Classifier
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@soodoku
soodoku / senator_ed.csv
Last active October 11, 2023 20:58
education of a senator
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
State,Name,Party,Rel.,Prior Exp.,Education,Year in,Born,Top College,R Top Coll.,D Top Coll.,Ad. Degree,R ,D
Alabama ,Richard Shelby ,Republican ,Presbyterian ,"U.S. House, Alabama Senate ","Alabama (BA, JD) ",1987,1934,,0,0,1,1,0
Alabama ,"Sessions, JeffJeff Sessions ",Republican ,Methodist ,Alabama Attorney General ,"Huntingdon College, University of Alabama ",1997,1946,,0,0,1,1,0
Alaska ,"Murkowski, LisaLisa Murkowski ",Republican ,Roman Catholic ,Alaska House of Representatives ,"Georgetown, Willamette ",2002,1957,,0,0,1,1,0
Alaska ,"Begich, MarkMark Begich ",Democratic ,Roman Catholic ,Mayor of Anchorage ,University of Alaska Anchorage (attended) ,2009,1962,,0,0,,0,0
Arizona ,"McCain, JohnJohn McCain ",Republican ,Baptist[1] ,"U.S. House, military ",U.S. Naval Academy[2] ,1987,1936,,0,0,1,1,0
Arizona ,"Kyl, JonJon Kyl ",Republican ,Presbyterian ,U.S. House ,"Arizona (BA, JD) ",1995,1942,,0,0,1,1,0
Arkansas ,"Lincoln, BlancheBlanche Lincoln ",Democratic ,Episcopalian ,U.S. House ,"Randolph-Macon Women\'s C
@soodoku
soodoku / towns.csv
Last active September 25, 2023 23:15
US Towns with Lat/Long
We can't make this file beautiful and searchable because it's too large.
Alabama,Abanda,33.10,-85.53,639
Alabama,Abbeville,31.57,-85.25,426
Alabama,Abbot Springs,33.36,-86.48,600
Alabama,Abel,33.55,-85.71,912
Alabama,Abercrombie,32.85,-87.16,291
Alabama,Aberfoil,32.07,-85.69,600
Alabama,Abernant,33.29,-87.20,459
Alabama,Abernathy,33.65,-85.41,1000
Alabama,Abernathy (historical),33.80,-85.57,1282
Alabama,Abihka (historical),33.30,-86.16,600
@soodoku
soodoku / Readme.md
Created September 25, 2023 22:43
Jacobson Approval Data

Gary Jacobson

Here are the files.

The non-obvious codes are State (1 [Alabama] to 50 [Wyoming] in strict alphabetical order--not the mail codes) and Month (1 to 18, beginning May 2005 and ending October 2006). You can combine the months as you wish.
In the original PSQ paper, I had data only through January 2006, so there is a lot more here.

For the Governor set, the party breakdowns for September and October 2006 have not been entered.
They are available (with some tedious downloading work on your part) at the SurveyUSA website

@soodoku
soodoku / Cable_penetration_1.csv
Last active September 25, 2023 21:52
Cable Ownership by DMA by Race Over the Years
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 34 columns, instead of 1. in line 5.
dma_name,dma_rank,dma_crossover,state,dma_code_mp90_or_shpfile,from_mp90_or_shpfile,2010,2009,2008,2007,2006,2005,2003,2002,2001,2000,1999,1998,1997,1996,1995,1994,1993,1992,1991,1990,1989,1988,1987,1986,1985,1984,1983,1974
Abilene-Sweetwater,163,ABILENE (TX) - SWEETWATER (TX) ,TX,662,ABILENE-SWEETWATER,42,42,47,57,58,61,63,66,67,71,71,71,70,69.2,68.2,67.6,69.3,68,69.3,67,67.2,65.2,69.5,67.8,67.8,66.5,61.3,44
Ada-Ardmore,,,,657,ADA-ARDMORE,,,,,,,,,,,,,,,,53.5,51.1,51.3,52.4,50.7,52,48.4,50,51.8,51.8,51,50.1,24
"Albany, GA",148,ALBANY (GA) ,GA,525,"ALBANY, GA",59,61,60,66,67,66,68,70,62,62,62,63,61,60.2,59.2,59.2,59.1,58.4,61,58,55.3,52.2,53.3,48.3,48.3,49.9,45.8,16
Albany-Schenectady-Troy,55,ALBANY (NY) - SCHENECTADY (NY) - TROY (NY) ,NY,532,ALBANY-SCHENECTADY-TROY,76,77,78,79,79,79,79,78,75,75,74,74,73,71.3,67.4,68.3,67.6,67.9,68.5,66,64.2,60.8,58.8,56.2,56.2,53.2,49.2,8
Albuquerque-Santa
@soodoku
soodoku / not_normal.ipynb
Last active July 16, 2023 04:58
Not Normal
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@soodoku
soodoku / flask_app.py
Last active July 16, 2023 17:36
Remote Logging of Errors With User Approval
from flask import Flask, request
import uuid
app = Flask(__name__)
@app.route('/error_endpoint', methods=['POST'])
def receive_error_message():
error_message = request.form.get('error_message')
if error_message:
@soodoku
soodoku / group_interest.R
Last active July 9, 2023 02:09
Group Interest Partisans?
# Pareto Party
# Load libs
library(tidyverse)
library(readstata13)
library(car)
library(dplyr)
library(xtable)
library(dplyr)
@soodoku
soodoku / forest_lasso.ipynb
Last active July 4, 2023 05:45
Post Process RF Using Lasso
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.