2024-election-modelling/makefile

14 lines
461 B
Makefile
Raw Permalink Normal View History

run:
go run main.go
save:
go run main.go > "out/output-$$(date +"%Y-%m-%d").txt"
polls:
mkdir -p data/polls
2024-06-01 16:10:16 +00:00
rm data/polls/president_polls.csv
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