Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:11,870 --> 00:00:18,850
Everyone and welcome in this new video in this video, we're going to talk about the pandas library
2
00:00:19,120 --> 00:00:30,370
and more precisely, sandwiches and dataframe pandas is the most famous library to end all data, so
3
00:00:30,370 --> 00:00:42,430
two cleaning dates are to manage data, etc. A series is a Python object, which is not only like a
4
00:00:42,430 --> 00:00:52,750
dictionary because it is very similar to a one dimensional array, but each venue can have a label.
5
00:00:53,920 --> 00:00:56,050
So let me show you an example.
6
00:00:58,270 --> 00:01:06,160
For example, I can create a series using the Pandas library, so we need to use the series function
7
00:01:06,400 --> 00:01:13,450
from pandas and as inputs, we need to put some values.
8
00:01:13,450 --> 00:01:21,250
So a list of values, for example, and we can specify the name of the index
9
00:01:23,890 --> 00:01:26,220
and like a dictionary.
10
00:01:26,290 --> 00:01:32,770
We have a value, and for each venue, we have a label.
11
00:01:36,010 --> 00:01:46,600
But if, for example, I want to call all the label labor one, it is possible for us service instead
12
00:01:46,600 --> 00:01:48,970
of a dictionary because a dictionary.
13
00:01:49,040 --> 00:01:50,500
Want a unique key?
14
00:01:53,270 --> 00:02:03,560
So it is very easy to create some series from our Aurora, for example, or from a list.
15
00:02:09,640 --> 00:02:17,020
So if a series is like a one dimensional running, you understand that, but that the frame will be
16
00:02:17,020 --> 00:02:18,910
like a two dimensional.
17
00:02:19,090 --> 00:02:19,450
All right.
18
00:02:19,750 --> 00:02:26,770
So we are going to specify the name of the role and the name of the cone.
19
00:02:27,460 --> 00:02:36,460
Usually in our case, the least index will be dates and the list of the columns will be some trading
20
00:02:36,460 --> 00:02:39,130
indicator or stock prices, etcetera.
21
00:02:40,120 --> 00:02:40,420
So.
22
00:02:43,510 --> 00:02:48,880
To create a data frame, we need to use the dataframe function from pandas
23
00:02:51,520 --> 00:02:58,570
and then we can put in there inside to have put that effort in, as we can see.
24
00:02:59,200 --> 00:03:03,240
And then the frame is more readable then and no way.
25
00:03:03,760 --> 00:03:13,060
But the only issue is that if you want to, for example, do some mathematical operation on the dataframe,
26
00:03:13,060 --> 00:03:17,830
et cetera, it will be a little bit more longer.
27
00:03:19,030 --> 00:03:21,570
Then on another.
28
00:03:21,820 --> 00:03:30,880
So it is important to note because if you are a very big project, you need to transform your data frame
29
00:03:31,090 --> 00:03:34,180
into another way to do it.
30
00:03:34,630 --> 00:03:41,680
You just have to put paint values after that offering to transform it into an array.
31
00:03:45,640 --> 00:03:54,820
So if I want to create now are dataframe, but with specific name of roles and Colin, I will do exactly.
32
00:03:54,820 --> 00:04:05,620
As for the series, I will specify the index, so least index, and for the column I will specify list
33
00:04:06,940 --> 00:04:07,390
columns.
34
00:04:11,110 --> 00:04:23,610
So as we can see for this metric, three by three, it is more comfortable to read it with name at a
35
00:04:23,620 --> 00:04:25,330
role and name for the column.
36
00:04:25,810 --> 00:04:39,220
But I just want to imagine that if you have a very big matrix and you keep it in an hour, it will be
37
00:04:39,220 --> 00:04:41,470
very difficult to read it.
38
00:04:42,130 --> 00:04:53,050
So usually we always walk with that a friend to read some data, to work with data, to clean the data.
39
00:04:53,440 --> 00:05:04,090
But if you have to do some transformation, mathematic calculus, or I don't know another computation
40
00:05:04,510 --> 00:05:10,150
things on this data, you need to transform it into a number.
4157
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.