Skip to content

Commit

Permalink
update ac transit fare system wrangler card
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-sijia committed Sep 2, 2021
1 parent 97831de commit 230fe1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project_cards/ac-transit-fare-system-change.wrangler
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ dependencies:
actransit_trips_list = self.feed.trips[self.feed.trips.agency_raw_name == "ACTransit_2015_8_14"].trip_id.tolist()
actransit_stops_list = self.feed.stop_times[self.feed.stop_times.trip_id.isin(actransit_trips_list)].stop_id.tolist()

self.feed.stops["zone_id"] = np.where((self.feed.stops.stop_id.isin(actransit_stops_list)) & (self.feed.stops.model_node_id.astype(int) <= 1500000),"1",np.where(self.feed.stops.stop_id.isin(actransit_stops_list), "2", self.feed.stops.zone_id))
# stops in Alameda and Contra Costa are zone 1, all others are zone 2
self.feed.stops["zone_id"] = np.where((self.feed.stops.stop_id.isin(actransit_stops_list)) & (self.feed.stops.model_node_id.astype(int) >= 2500000) & (self.feed.stops.model_node_id.astype(int) <= 3500000),"1",np.where(self.feed.stops.stop_id.isin(actransit_stops_list), "2", self.feed.stops.zone_id))

0 comments on commit 230fe1a

Please sign in to comment.