Question: 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
Pythons Generators and Streaming.
Compute the median age of the Citibikes 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 eg list, dictionary, DataFrame, etc. with more than elements in memory. You should use yield when you want to iterate over a sequence, but dont want to store the entire sequence in memory.
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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
