Sample energy usage data
1,000 × 13rows × columns in the 1,000-row file
Updated 3 November 2026. Fictional U.S. businesses and people, generated with a fixed seed.
textnumberdateyes/no
Largest file10,000rows; also 100 and 1,000
Columns13with a data dictionary below
Dates2024-01-01 – 2024-12-01range in the file
LicenceCC0synthetic, free for any use
What is in it
Each row is one month of 2024 for one fictional electricity meter (residential, apartment or small business): kWh used, peak and off-peak kWh, average outdoor temperature, price per kWh, service charge and the bill. Use rises in hot and cold months, so the table suits seasonal trend charts and bill calculations.
More practice tables like this one: all 22 newer sample datasets.
First rows
point at a column to light it up
| reading_idtext | meter_idtext | customer_typetext | citytext | statetext | billing_monthdate | kwh_usednumber | peak_kwhnumber | off_peak_kwhnumber | avg_temp_fnumber | rate_per_kwhnumber | fixed_chargenumber | bill_amountnumber |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| EU800001 | M10001 | Residential | Chicago | IL | 2024-01-01 | 750 | 262 | 488 | 26.4 | 0.16 | 12 | 132 |
| EU800002 | M10001 | Residential | Chicago | IL | 2024-02-01 | 718 | 248 | 470 | 28.2 | 0.16 | 12 | 126.88 |
| EU800003 | M10001 | Residential | Chicago | IL | 2024-03-01 | 778 | 265 | 513 | 32.7 | 0.16 | 12 | 136.48 |
| EU800004 | M10001 | Residential | Chicago | IL | 2024-04-01 | 628 | 215 | 413 | 46.5 | 0.16 | 12 | 112.48 |
| EU800005 | M10001 | Residential | Chicago | IL | 2024-05-01 | 595 | 200 | 395 | 59.6 | 0.16 | 12 | 107.2 |
| EU800006 | M10001 | Residential | Chicago | IL | 2024-06-01 | 621 | 187 | 434 | 71.7 | 0.16 | 12 | 111.36 |
| EU800007 | M10001 | Residential | Chicago | IL | 2024-07-01 | 734 | 258 | 476 | 74.5 | 0.16 | 12 | 129.44 |
| EU800008 | M10001 | Residential | Chicago | IL | 2024-08-01 | 605 | 212 | 393 | 69.9 | 0.16 | 12 | 108.8 |
| EU800009 | M10001 | Residential | Chicago | IL | 2024-09-01 | 652 | 203 | 449 | 66.9 | 0.16 | 12 | 116.32 |
| EU800010 | M10001 | Residential | Chicago | IL | 2024-10-01 | 675 | 210 | 465 | 49.8 | 0.16 | 12 | 120 |
Average kWh by customer type
kWh per month, 1,000-row file
Show as a table
| customer_type | value |
|---|---|
| Small business | 3,105 |
| Residential | 1,059 |
| Apartment | 485 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| reading_id | text | Row number |
| meter_id | text | Fictional meter number; each meter has 12 monthly rows |
| customer_type | text | Residential, Apartment or Small business |
| city | text | City |
| state | text | State |
| billing_month | date | First day of the billing month (2024) |
| kwh_used | integer | Electricity used in the month (kWh) |
| peak_kwh | integer | kWh used in peak hours |
| off_peak_kwh | integer | kwh_used - peak_kwh |
| avg_temp_f | decimal | Average outdoor temperature that month (degrees F) |
| rate_per_kwh | decimal | Price per kWh (USD) |
| fixed_charge | decimal | Monthly service charge (USD) |
| bill_amount | decimal | kwh_used x rate_per_kwh + fixed_charge (USD, rounded to cents) |
Practice questions
answers checked in SQL and in Python
Average monthly kWh by customer type?
Small business 3,105.2 kWh; Residential 1,058.9 kWh; Apartment 485.3 kWh
Excel
=AVERAGEIF(C:C,"Residential",G:G)SQL
SELECT customer_type, ROUND(AVG(kwh_used),1) AS k FROM energy_usage GROUP BY customer_type ORDER BY k DESC, customer_typeFile: energy-usage-1000
Total billed in July 2024?
$20,356.81
Excel
=SUMIFS(M:M,F:F,DATE(2024,7,1))SQL
SELECT ROUND(SUM(bill_amount),2) FROM energy_usage WHERE billing_month = '2024-07-01'File: energy-usage-1000
Peak share of all kWh (total peak_kwh / total kwh_used)?
37.9%
Excel
=SUM(H2:H1001)/SUM(G2:G1001)SQL
SELECT ROUND(100.0*SUM(peak_kwh)/SUM(kwh_used),1) FROM energy_usageFile: energy-usage-1000