Data analysis labpractice

Scale an array without a loop

Build an array, double it, and keep the values that pass a test. The second cell uses the name from the first.

Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.

A Python list times two repeats the list. A NumPy array times two scales every number. Run the first cell, then the second. The second cell never rebuilds scores.

1

Double every score

2

Keep the high scores

3

Scratch