Lesson content is currently in draft form.
The select
method accepts a block and filters a collection on whether each of its members passes the true
/false
condition:
1 2 3 4 |
|
Ignoring bad data
Use the select
method to only work with the Congressmember data in which a twitter_id
is included
Exercise
Compare the average tweet rate between over 50-year-olds and under 50-year-olds.