Identify Date with Highest Total kWh Consumption Using Pandas
Company: Amazon
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Onsite
Overview: This question evaluates proficiency in pandas-based data manipulation and time-series aggregation, specifically the competency to aggregate and summarize meter readings to identify peak consumption dates.
Tables
meter_readings(meter_id INTEGER, timestamp DATE, kwh_consumed DECIMAL(10,1), city VARCHAR(50))
Hints
- GROUP BY timestamp and SUM kwh_consumed
- ORDER BY the summed value in descending order and LIMIT 1