Standard input contains a stations CSV (station_id,name,district), a line ---, and a trips CSV (trip_id,start_station,end_station,duration_min).
Load both into an in-memory SQLite database (sqlite3.connect(":memory:"), DataFrame.to_sql) and use SQL (with pd.read_sql_query) to print:
- trips and average duration (1 decimal) per district of the start station, most trips first, ties by district name — as a table without index;
popular routes: S1->S2 (2), S2->S1 (2)— routesstart->endwith start ≠ end and at least 2 trips, most frequent first, ties alphabetical (ornone);stations with no departures: Airport— station names in alphabetical order (ornone).