Question: Instructions 3 3 hide - Create a variable called filter _ criteria to select the appropriate rows from the merged table so that you can
Instructions
hide
Create a variable called filtercriteria to select the appropriate rows from the merged table so that you can sum the rides column.
The previous output can be found in the Shell tab.
# Merge the ridership, cal, and stations tables
ridershipcalstations ridership.merge
onyear 'month', 'day'
mergestations
on'stationid
# Create a filter to filter
ridershipcalstations
filtercriteria
ridershipcalstationsmonth
&
ridershipcalstationsdaytype'
&
ridershipcalstationsstationname'
# Use loc and the filter to select for rides
printridershipcalstations.locfiltercriteria
'rides'sum
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
