Parsing Election Data by Reading Files in Go

Pubblicato il: 30 dicembre 2023
sul canale di: Philomath
641
9

We prepare to forecast a US Presidential election from polling data by learning how to parse data from file. In particular, we read in polling data for each state, as well as read in the Electoral College votes for each state.

Like what you see? Please like, subscribe, and check out our free online course accompanying this video at https://programmingforlovers.com.

Check your work on this code along and get access to dozens of autograded exercises at Cogniterra: https://cogniterra.org/course/63/promo.

Join our P4❤️ community Discord:   / discord  

Help us grow our project by making a donation: https://www.paypal.com/donate?campaig....

00:00 Introduction
00:37 Setup and explanation of starter code and data
04:16 Reading in Electoral College votes
15:23 We can compile all files in a folder with "go build"
16:26 Reading in polling data
24:22 Trying out our functions
28:01 Phillip's dark secret
29:13 Pointer to the next code along, and happy coding! ❤️


In questa pagina del sito puoi guardare il video online Parsing Election Data by Reading Files in Go della durata di online in buona qualità , che l'utente ha caricato Philomath 30 dicembre 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 641 volte e gli è piaciuto 9 spettatori. Buona visione!