2024-04-14 20:01:34 +00:00
|
|
|
run:
|
|
|
|
go run main.go
|
|
|
|
|
2024-04-14 01:24:17 +00:00
|
|
|
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
|
2024-04-14 01:24:17 +00:00
|
|
|
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
|
|
|
|
|