How would you work with a dataset in Pandas and also in SQL?
Using the supplied customer and order data, produce the SQL result below. Include qualifying orders from Q1 2025 and retain customers with no qualifying orders. The same logic should be reproducible in Pandas.
customer_id, customer_name, region, completed_orders, total_completed_amount, last_completed_date, activity_level, and region_rank.completed dated from 2025-01-01 through 2025-03-31.No activity, High, or Standard; rank customers within each region by total amount, with ties sharing a rank.region, region_rank, then customer_id.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer display name |
| region | VARCHAR(50) | Customer sales region |
| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| customer_id | INT | Customer associated with the order |
| order_date | DATE | Date the order was placed |
| status | VARCHAR(20) | Order processing status |
| amount | NUMERIC(10,2) | Order amount |