2024-election-modelling/makefile

10 lines
362 B
Makefile
Raw Normal View History

run:
go run main.go
polls:
mkdir -p data/polls
2024-06-01 16:08:35 +00:00
cd data/polls && wget https://projects.fivethirtyeight.com/polls/data/president_polls.csv
cat data/polls/president_polls.csv | awk -F, 'NR==1 {print; next} $$13 != ""' > data/polls/president_polls_state.csv
# cd data/polls && awk -F, 'NR == 1 || $13 != ""' president_polls.csv > president_polls_state.csv