Parsing Election Data by Reading Files in Go

Publié le: 30 décembre 2023
sur la chaîne: 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! ❤️


Sur cette page du site, vous pouvez voir la vidéo en ligne Parsing Election Data by Reading Files in Go durée online en bonne qualité , qui a été Téléchargé par l'utilisateur Philomath 30 décembre 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 641 fois et il a aimé 9 téléspectateurs. Bon visionnage!