By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| dt | x |
|---|---|
| 2018-01-01 | 1 |
| 2018-01-03 | 1 |
| 2018-01-04 | 1 |
| 2018-01-06 | 4 |
| 2018-01-08 | 2 |
| 2018-01-09 | 2 |
| 2018-01-11 | 2 |
| dt | x |
|---|---|
| 2018-01-01 | 1 |
| 2018-01-03 | 1 |
| 2018-01-04 | 1 |
| 2018-01-06 | 4 |
| 2018-01-08 | 2 |
| 2018-01-09 | 2 |
| 2018-01-11 | 2 |