This data analytics challenge provides a form of a coding assessment which allows interviewers and a candidate to be on a common footing during subsequent interviews, more effectively discuss the approaches, thought processes, and techniques demonstrated in the resulting script.
This challenge is based on analyzing election results. In it's initial form, the solution is intended to be written in Python, but other suitable languages will be considered. The first resource is a CSV file containing hypothetical election data.
-
Import CSV Data
-
Total # of Votes Cast
-
List the counted Counties
-
List the Candidates
-
Tally Votes By County
-
Tally Votes for each Candidate and Declare A Winner
-
Print Results To Stdout and to a text file
-
DDL : Create schema and table(s)
-
DML : Store the results (from Challenge 1)
-
Report : Query and display the stored data, to verify that it's accurate
Election Results
------------------------------------------
Total Votes: n,nnn,nnn
------------------------------------------
Votes by county:
County1: n.nn% (nnn,nnn)
County2: n.nn% (nnn,nnn)
County3: n.nn% (nnn,nnn)
------------------------------------------
Votes by candidate:
Candidate1: n.nn% (nnn,nnn)
Candidate2: n.nn% (nnn,nnn)
Candidate3: n.nn% (nnn,nnn)
------------------------------------------
Winner: Candidate?
------------------------------------------