Skip to content

Instantly share code, notes, and snippets.

@meli-lewis
meli-lewis / biden_ad_transcript_analysis.py
Last active April 19, 2020 19:16
4/18/20 Biden Campaign Ad Transcript
#!/usr/bin/env python
# coding: utf-8
import matplotlib as mpl
import nltk
import pandas as pd
import re
from nltk.corpus import stopwords
from nltk.stem.porter import PorterStemmer
porter = PorterStemmer()
@meli-lewis
meli-lewis / keybase.md
Created March 24, 2020 22:03
keybase.md

Keybase proof

I hereby claim:

  • I am meli-lewis on github.
  • I am mlewis_reveal (https://keybase.io/mlewis_reveal) on keybase.
  • I have a public key whose fingerprint is 5A47 4B96 A492 47A9 5125 1412 4CCD E609 5692 197D

To claim this, I am signing this object:

@meli-lewis
meli-lewis / popest.py
Last active May 14, 2019 00:37
Population Estimate Analysis for Finding Incorporated Places with Population < 800
import pandas as pd
# Read fails if encoding is left to default
df = pd.read_csv(
'sub-est2017_all.csv',
encoding="ISO-8859-1",
dtype={
"SUMLEV": str,
"STATE": str,
"COUNTY": str,
@meli-lewis
meli-lewis / suggestions.md
Created August 27, 2017 19:43
Advanced search for Hurricane Harvey tweets

Copy and paste the following into Twitter search:

-prayers -'text HARVEY' #hurricaneharvey OR #houstonflood

Additional recommendations:

-trump -obama -crazy

@meli-lewis
meli-lewis / .block
Created May 24, 2017 00:12 — forked from mbostock/.block
Cluster Dendrogram
license: gpl-3.0
height: 2000
border: no

D3 Bar Chart

A minimal demonstration of how to create an HTML bar chart with D3. Fork this template to create your own chart.

A Pen by Melissa Lewis on CodePen.

License.

@meli-lewis
meli-lewis / .block
Created March 2, 2017 22:38
Scatterplot with real data (annotation)
license: mit
@meli-lewis
meli-lewis / .block
Last active March 2, 2017 22:14
Single time series chart with real data (Start here)
license: mit
@meli-lewis
meli-lewis / .block
Created March 2, 2017 20:59
2. Transforming data
license: gpl-3.0
height: 240
border: no
@meli-lewis
meli-lewis / .block
Created March 2, 2017 20:58
3. Drawing shapes
license: gpl-3.0
height: 240
border: no