WEBVTT

00:01.330 --> 00:06.880
In the last video we have learned how to create a fixed frequency daytime index with the date range

00:06.880 --> 00:09.750
method and pebbles provides a service.

00:09.760 --> 00:11.950
Lots of standard frequencies.

00:12.160 --> 00:17.030
Like for example hourly daily weekly monthly and so on.

00:17.200 --> 00:21.620
And in this video I want to demonstrate that there's even more flexibility.

00:21.940 --> 00:30.940
So first of all let's import pandas and you see the direct pandas method to date range and we determine

00:30.970 --> 00:38.830
that our status yes the 1st of July 2015 and we want to have 10 periods and we can get a daytime index

00:39.010 --> 00:47.980
with hourly increments by passing the hour to the frequency parameter so we can see we are starting

00:47.980 --> 00:57.460
by default at midnight on the 1st of July and then we have until the 10 times timestamps from uh midnight

00:57.490 --> 01:00.190
till 9:00 and do the same.

01:00.190 --> 01:02.440
We can do also flex time before they leave.

01:03.910 --> 01:06.210
So give you a starting from the 1st of July.

01:06.220 --> 01:14.760
Then we have the second the third and so on and we can also have for example monthly so by default we

01:14.790 --> 01:16.740
are having the month ends.

01:16.780 --> 01:24.120
So yeah the first month and some the thirty first of July and so we are having here a daytime index

01:24.150 --> 01:29.200
over the next 10 month ends and we can further customize this.

01:29.200 --> 01:36.390
So let's assume we want to have 10 timestamps with them increment off for example not one hour but two

01:36.400 --> 01:36.940
hours.

01:37.330 --> 01:43.760
So instead of having an H for one hour we can simply pass here two hours so an hour.

01:43.770 --> 01:46.290
Our first timestamp is at midnight.

01:46.290 --> 01:49.080
Then we have the second timestamp at 2:00 o'clock.

01:49.110 --> 01:52.200
Then the third at 4:00 and so on.

01:52.200 --> 01:58.860
So we have for increments of two hours and the same we can do for example for daily so we can have increments

01:58.890 --> 02:00.210
of three days.

02:01.200 --> 02:09.470
So then we have to pass the uh three days so the first time stamps the first of two light and the second.

02:09.500 --> 02:11.860
The Fourth of July and so on.

02:12.110 --> 02:16.250
And that's actually even more flexibility so we can combine three days.

02:16.250 --> 02:18.500
And for example the eight hours

02:23.350 --> 02:29.170
and consequently we get you ten times stamps with an increment of three days and eight hours.

02:29.530 --> 02:36.170
So the very first time stamps at midnight on the 1st of July then we have for the second time stamp

02:36.510 --> 02:38.800
three days and eight hours later.

02:38.800 --> 02:42.240
So at the Fourth of July at 8:00 and so on.

02:43.030 --> 02:51.010
And we can see here at the bottom that we have a frequency of 80 hours so three times 24 plus eight

02:52.780 --> 02:58.160
that this was a short but a very useful addition to the PD update trained method.

02:58.310 --> 03:00.920
And I hope to see you also in the next video by.
