Python’s Generators and Streaming.
Compute the median age of the Citibike’s subscribed customers. You are required to read
data line by line and are not allowed to store the entire data set in memory. Indeed, you
should not have any containers (e.g. list, dictionary, DataFrame, etc.) with more than
100 elements in memory. You should use yield when you want to iterate over a sequence,
but don’t want to store the entire sequence in memory as shown in the Codes/Lab3.
What to submit:
Turn in an ipython notebook with the plot of the histogram of customers age and print
out a single number showing the median age of the subscribed customers.