API CAN CODE �Computational Foundations of �Data Science
Lesson 2.2: Manual Data Processing
This work was made possible through generous support from the National Science Foundation (Award # 2141655).
2.1 Recap
2
Warmup - Explore “Streetlights”
3
Warmup - Explore “Streetlights”
4
Streetlights - Missing Data
Use conditional formatting across the entire dataset to highlight missing data cells.
5
Streetlights - Countif Observations
Use a countif function to count a number of observations meeting �a particular variable value. �
The “CountIf” function looks at a cell and produces a certain value �IF that cell’s contents match a specified number or string of text, �and a different value if the cell’s contents are something ELSE.
�=COUNTIF(O2:O72037, “Posttop”)
6
function name
range of values to search
criteria to check match
Streetlights - Countif Observations
Go to the bottom of the column O - “Fixture Style Description”.
�
7
Streetlights - Function Calculation
Use the Average function to calculate a mean value for several of the variables.
8
Streetlights - Transformation
9
The Switch to Programming
10
Intro to EduBlocks
EduBlocks is a block-based programming tool that helps novices learn how to code with text-based programming languages.
11
Block-view
Code-view
There’s a quick guide in your handouts for future use!
Streetlights - Programming
12
Streetlights - Programming
13
Streetlights - Programming
There are clear differences between the block-based programming process and our Google Sheets work earlier.
14
Exit Ticket
15
Thanks!
apicancode@umd.edu
16
This work was made possible through generous support from the National Science Foundation (Award # 2141655).
API Can Code is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike
4.0 International (CC BY-NC-SA 4.0) License