Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,220 --> 00:00:03,340
Welcome to the lecture on engineering.
2
00:00:03,340 --> 00:00:05,640
Date and time variables.
3
00:00:06,320 --> 00:00:10,540
Early on in the course we learned that date and time variables are those.
4
00:00:10,640 --> 00:00:18,740
But it was that contained date time or a combination of both is something that we call a timestamp or
5
00:00:18,740 --> 00:00:19,280
a date.
6
00:00:19,280 --> 00:00:27,400
Timestamp we also saw some examples of date and date and time variables like for example date of birth
7
00:00:27,670 --> 00:00:30,480
which in this case contains only dates.
8
00:00:30,910 --> 00:00:37,420
Date of application for example for a loan which in this case contains the year and the month time of
9
00:00:37,420 --> 00:00:38,080
accident.
10
00:00:38,080 --> 00:00:46,200
For example which in this case contains only time for example as well payment date which contains in
11
00:00:46,200 --> 00:00:53,610
this example a combination of date and time so all of these are examples of date and time variables
12
00:00:53,860 --> 00:00:57,250
and in general we don't use them as such.
13
00:00:57,300 --> 00:01:04,710
When we build machine learning mothers but we rather extract a variety of features from these characteristics
14
00:01:05,880 --> 00:01:07,500
let's have a look on how we can do that.
15
00:01:10,620 --> 00:01:18,520
So here we can see the anatomy of a daytime viable in this variable payment date that contains a date
16
00:01:18,940 --> 00:01:27,130
and time we can see how we can easily derive the year of payment from this part of the variable.
17
00:01:27,190 --> 00:01:33,850
We can also derive the months of the payment and with this variable we can create features that take
18
00:01:33,850 --> 00:01:40,660
numbers from one to twelve indicating the month but we can also derive the quarter of the year in which
19
00:01:40,660 --> 00:01:48,790
the payment was made or even the semester if we were interested similarly we can get they information
20
00:01:48,790 --> 00:01:55,750
from the day part of the day time variable and we can get this information in the form of Monday Tuesday
21
00:01:55,750 --> 00:02:04,250
Wednesday or instead numbers or we can create variables like is we can for example by looking at whether
22
00:02:04,250 --> 00:02:13,070
these dates are Saturday or Sunday as we will see in the Jupiter notebook later on in the section we
23
00:02:13,070 --> 00:02:21,980
can also look at the time part of the variable and derive our minutes and seconds.
24
00:02:21,980 --> 00:02:27,290
Looking at the different components of the time and we can also get creative and look at whether this
25
00:02:27,290 --> 00:02:34,160
payment took place in the morning or in the afternoon or in the evening more interesting.
26
00:02:34,250 --> 00:02:41,270
We can calculate the time that passed between two variables.
27
00:02:41,270 --> 00:02:47,660
For example we have the variable first payment date which contains a date on a time and then we have
28
00:02:47,660 --> 00:02:52,150
another different variable that contains the information about the last payment date.
29
00:02:52,220 --> 00:02:59,510
The similar format we can calculate the difference in time and we can express this in the number of
30
00:02:59,510 --> 00:03:07,250
days that passed between the two payments or the number of months or the number of years or if the difference
31
00:03:07,280 --> 00:03:09,890
is not as big as the one that I show in this example.
32
00:03:09,890 --> 00:03:15,790
We can also calculate the difference in hours minutes and seconds.
33
00:03:15,810 --> 00:03:23,250
Finally we need also to pay attention to the different time zones in which we can have two variables
34
00:03:23,250 --> 00:03:27,140
particularly if our organization operates worldwide.
35
00:03:27,140 --> 00:03:34,050
The Thompson empanadas is going to be indicated by a plus or a minus on the different of ours respect
36
00:03:34,050 --> 00:03:42,680
to the center which is 0 so in order to operate with these variables we first need to put them in the
37
00:03:42,680 --> 00:03:44,260
same star timestamp.
38
00:03:44,360 --> 00:03:47,600
Whichever you want in this case I chose 0.
39
00:03:47,720 --> 00:03:51,380
So as you can see 15 is two hours plus respect to zero.
40
00:03:51,380 --> 00:03:58,880
So in the zero time zone this would be 1:00 o'clock whereas this one it's 3 p.m. but this time zone
41
00:03:58,880 --> 00:04:01,600
is five times ahead of the center.
42
00:04:01,640 --> 00:04:09,230
So in the center time it would be 10 a.m. and now that we have the values in the same time zone we can
43
00:04:09,260 --> 00:04:12,830
operate and extract differences in time as we did in the previous light
44
00:04:16,030 --> 00:04:17,290
in the rest of the section.
45
00:04:17,290 --> 00:04:23,680
I'm going to cover two Jupiter notebooks in the first one I'm going to show you how to engineer dates
46
00:04:23,950 --> 00:04:29,970
using banned and in the second one I'm going to show you how to engineer times using binders as well.
47
00:04:30,980 --> 00:04:35,530
Feel free to read the notebooks in your own time or if you prefer.
48
00:04:35,810 --> 00:04:40,070
Come with me in the next two videos and I will walk you through the notebooks.
49
00:04:40,490 --> 00:04:41,150
See you in a bit.
5605
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.