Smart meter data has duplicated, shifted readings around dst change. How do you usually clean this before interpolating?
16:33 21 Nov 2026

I'm working on a uni project with real smart meter data (PySpark, but the question is more about the approach than the code). Each row has a timestamp, a cumulative energy counter in kwh and a meter id. The counter should only ever go up, and readings come roughly every 10 minutes. Later I need to interpolate the counter onto a 15 minute grid to calculate consumption per interval.

Timestamps are stored as real UTC instants. I display them in Europe/Lisbon because the tariff periods are defined in local time. When I looked at the night the clocks went back (2025-10-26, 02:00 -> 01:00), I found this:

Date (Europe/Lisbon)   Reading
2025-10-26 01:50:53    5587.72   <- last reading before clocks go back
2025-10-26 01:01:01    5587.74
2025-10-26 01:01:52    5587.86
2025-10-26 01:11:10    5587.77   <- counter goes DOWN
2025-10-26 01:12:00    5587.87
2025-10-26 01:21:18    5587.80
2025-10-26 01:22:09    5587.88
2025-10-26 01:31:27    5587.82
...
2025-10-26 02:43:16    5588.02

After the clock change there are two interleaved series about 50 seconds apart. One continues the normal 10-minute rhythm. The other has higher values and lines up with that rhythm shifted by exactly 1 hour. So my guess is that the readings from around 02:00 to 02:42 got stored with a timestamp 1 hour too early, probably a dst bug that exported the data. There are no readings between 02:00 and 02:42.

If I leave it like this, I get negative consumption in some intervals, which obviously breaks things.

Options I'm thinking about

  1. Drop every reading that breaks monotonicity (counter lower than a previous reading) and let interpolation fill the gap.

  2. Drop the whole affected window (both series) and interpolate from 01:50:53 to 02:43:16.

  3. Try to "fix" the shifted readings by moving them +1 hour

Option 3 feels risky because I'm only guessing what happened. Options 1 and 2 lose maybe ~0.3 kWh of detail over less than an hour, but the total energy stays correct since the counter values at both ends are fine.

What's the usual way people deal with this in metering or time-series data? Is dropping and interpolating considered acceptable, or is there a better standard practice? Also, should I expect the same thing at the spring clock change (clocks going forward)?

best-practices pyspark time-series interpolation dst