Now, use the Dogs.csv data set to calculate the mean maximum lifespan of the dog breeds. This program already finds the sum of the column, add the code to calculate the mean, and output the result. The output should have the following format.
The mean lifespan is 13.495238095238095
Coding:
Hotkey Shortcuts
Move BlocksUP or DOWN or TAB
Run Program ALT + SHIFT + R
Stop Program ALT + SHIFT + S
Hide Tray ALT + SHIFT + X
Zoom In ALT + +
Zoom Out ALT + -
Open Help ALT + SHIFT + H
Navigate to Tray ALT + 1
Navigate to Blocks ALT + 2
Enter Navigation Mode SHIFT + ENTER
Blocks
Hint
Great job!
Try again
After traversing and finding the sum, divide it by the size of the column(e.g. column:GetSize()). Then, output the mean. Notice that the sum has changed to a variable with a number type. This was changed to prevent integer division, which would have cut off the decimal.