[Solved]-Use Sql Query Load Taxi Table Taxidb Pandas Dataframe Called Alltaxi Include Trips Pick Dr Q37242644

I’m not sure what sql query to put at ???. Please help
Use a SQL query to load the taxi table from taxi.db into a Pandas DataFrame called all_taxi Only include trips that have both pick-up and drop-off locations within the boundaries of New York City: Longitude is between -74.03 and-73.75 (inclusive of both boundaries) Latitude is between 40.63 and 40.85 (inclusive of both boundaries) Hint: Your solution will be shorter if you write Python code to generate the SQL query string. Try not to copy and paste code. The provided tests check that you have constructed all_taxi correctly : import sqlite conn-sqlite3.connect (‘taxi.db’ lon bounds -74.03, -73.75 lat _bounds [40.6, 40.88] curconn.cursor) all_taxi- cur.execute(22? all_taxi.head) Show transcribed image text Use a SQL query to load the taxi table from taxi.db into a Pandas DataFrame called all_taxi Only include trips that have both pick-up and drop-off locations within the boundaries of New York City: Longitude is between -74.03 and-73.75 (inclusive of both boundaries) Latitude is between 40.63 and 40.85 (inclusive of both boundaries) Hint: Your solution will be shorter if you write Python code to generate the SQL query string. Try not to copy and paste code. The provided tests check that you have constructed all_taxi correctly : import sqlite conn-sqlite3.connect (‘taxi.db’ lon bounds -74.03, -73.75 lat _bounds [40.6, 40.88] curconn.cursor) all_taxi- cur.execute(22? all_taxi.head)
Expert Answer
Answer to Use a SQL query to load the taxi table from taxi.db into a Pandas DataFrame called all_taxi Only include trips that have… . . .
OR

