WEBVTT

00:02.070 --> 00:08.600
Hello, everyone, and welcome to this tutorial here in this tutorial, we will understand the frames.

00:09.180 --> 00:10.200
Let us begin.

00:10.650 --> 00:17.520
Our data frame is a two dimensional Radosta Judd that these data is aligned in a tabular fashion in

00:17.520 --> 00:25.770
drawers and columns depend as data frame consists of three principal components, data, rows and columns

00:26.520 --> 00:27.920
to understand data frames.

00:27.930 --> 00:30.090
First, we have to import, but it needs.

00:32.560 --> 00:43.400
Important MP as MP, then import Ben Dodds as PD after that import.

00:43.450 --> 00:48.760
One more liability from num dort random

00:51.280 --> 00:54.620
import brand and.

00:56.020 --> 01:05.710
Then import and PDR, random dot seed one zero one.

01:10.110 --> 01:10.500
Great.

01:12.020 --> 01:15.010
You will ensure that we will house same output.

01:15.880 --> 01:20.880
Now define a data frame the F to define data frame.

01:20.920 --> 01:26.620
We have to use a method BD dot data frame.

01:29.260 --> 01:32.320
And these are the arguments that we can enter here.

01:32.540 --> 01:33.200
Data.

01:33.400 --> 01:34.900
Index columns.

01:35.140 --> 01:35.860
Data type.

01:35.920 --> 01:38.260
And copy specified data.

01:38.290 --> 01:43.300
First data is equal to land.

01:43.420 --> 01:45.250
And for you.

01:45.250 --> 01:46.150
Comma food.

01:48.450 --> 01:50.190
Didn't specify the index.

01:52.440 --> 01:54.980
A, b.

01:57.040 --> 02:00.970
C, b, e.

02:03.220 --> 02:05.290
After that specified the columns.

02:08.460 --> 02:11.040
W x.

02:12.480 --> 02:13.090
Vij.

02:14.940 --> 02:17.590
Z execute.

02:21.060 --> 02:23.160
No, Jake, this did help him the F.

02:25.670 --> 02:26.360
Great.

02:26.840 --> 02:28.700
So this is our data frame.

02:29.540 --> 02:33.560
So these are the column names W, X, Y, Z.

02:33.680 --> 02:35.190
And these are the names.

02:35.570 --> 02:37.140
A, B, C, D, E.

02:37.370 --> 02:41.060
And this is the data, as we have discussed earlier.

02:41.270 --> 02:45.500
This data in a table, lot of farm rows and columns.

02:46.190 --> 02:48.800
Each of these column is a number ECD.

02:49.280 --> 02:52.010
This is a number ECD column W.

02:52.370 --> 02:53.210
This is a number.

02:53.270 --> 02:53.690
Series.

02:54.030 --> 02:55.340
Again, column X.

02:55.520 --> 02:56.930
Column Y and column.

02:56.960 --> 03:00.570
The each of these column is a number C reads.

03:01.100 --> 03:04.400
And all these numbers series share a common index.

03:04.700 --> 03:05.400
This one.

03:06.380 --> 03:12.980
So we can say that data stream is a bunch of bendat TV that share a common index.

03:13.430 --> 03:16.130
So these are the basics about the data frame.

03:16.340 --> 03:21.790
And this is how we can create a data stream using this method dot data frame.

03:24.410 --> 03:27.020
Let us understand indexing and selection.

03:35.290 --> 03:37.380
Suppose we want to select this column.

03:37.740 --> 03:44.550
Column W to do that by the name of data frame and then specify the column name.

03:46.980 --> 03:52.020
So this is a very quiet output column w no, take the tape.

03:57.380 --> 03:58.170
D.F..

03:59.860 --> 04:00.910
Column DeBlois.

04:04.580 --> 04:05.330
Series.

04:05.840 --> 04:08.360
So this column is a name P.c reads.

04:10.220 --> 04:12.770
No, Jake, the type of data frame B F.

04:17.290 --> 04:18.340
They delphinium.

04:19.610 --> 04:26.210
So they doorframe is a bunch of numpty series with common index from the day doorframes, if we can

04:26.210 --> 04:27.590
select multiple columns.

04:27.680 --> 04:29.390
Also, let us see how.

04:32.310 --> 04:34.080
Take the data from the F.

04:36.150 --> 04:39.600
He we will select these two columns X and VI.

04:40.840 --> 04:53.280
To do that type name off the data frame here, we will passing at least Golomb X and column by execute.

04:54.620 --> 04:55.280
Great.

04:55.610 --> 05:01.280
So this is our output column X and column by no Kopit is.

05:03.050 --> 05:03.980
Take the tape.

05:08.030 --> 05:14.460
They Dufrene when there is more than one Numpty series, then it is a data frame.

05:16.260 --> 05:20.220
So this is all about the indexing and selection in data frames.

05:24.490 --> 05:27.190
Let us understand how to add a new column.

05:32.760 --> 05:37.470
First, take the data from the EFF so we can add a column.

05:38.490 --> 05:49.070
To add a column, type B F specified the name of new, column new, we will add this column with arithmetic.

05:49.170 --> 05:56.310
Operation B, F, column W, Blur's B F.

05:56.970 --> 05:57.990
Column X.

05:59.990 --> 06:00.760
Execute.

06:02.420 --> 06:04.170
Now, Jake, D-Day Delphinium, B.F..

06:06.130 --> 06:06.760
Great.

06:07.450 --> 06:10.220
So this column is added successfully here.

06:10.960 --> 06:15.620
And this is the addition of these two columns, column W and column X.

06:16.300 --> 06:19.810
So this is how we can add a new column in data frame.

06:23.050 --> 06:27.160
Let us understand how to remove the columns and drawers in data frames.

06:34.290 --> 06:37.020
Removing columns and roads.

06:40.510 --> 06:47.000
To remove a column, we use drop method type D.F. dot drop.

06:49.750 --> 06:52.550
Here we have to specify labels and axes.

06:54.160 --> 06:55.880
Specify labels first.

06:56.410 --> 06:58.240
Labels is equal to new.

06:59.410 --> 07:02.320
This is the name of a column that we are going to remove.

07:02.770 --> 07:04.270
Then specify axes.

07:05.590 --> 07:13.380
Axes is equal to one axis, is equal to one for the columns and axis is equal to zero for the rules.

07:13.960 --> 07:15.100
No execute.

07:16.230 --> 07:16.660
Great.

07:17.140 --> 07:19.320
So the column new is removed here.

07:19.920 --> 07:21.810
Now take the detailed from the F.

07:24.350 --> 07:30.500
In regional data frame, this column is not removed to remove this column permanently be how to add

07:30.500 --> 07:35.450
one more parameter IBF dot drop.

07:37.960 --> 07:50.290
Specify labels new, then specify axes vun to delete this column permanently, be able to specify in

07:50.290 --> 07:52.030
place is equal to true.

07:53.770 --> 07:56.580
In place is equal to true.

07:57.310 --> 07:58.420
No execute.

08:00.980 --> 08:02.240
Dig the data frame.

08:04.580 --> 08:05.180
Great.

08:05.480 --> 08:12.200
So this column is removed successfully to remove a column V, how to deliberately specify in place is

08:12.200 --> 08:13.250
equal to true.

08:13.790 --> 08:17.420
So this is how we can remove a column from a data frame.

08:18.530 --> 08:24.040
Let us understand how to remove a rule a b f dot draw.

08:25.460 --> 08:27.320
Specify a name of the rule.

08:27.590 --> 08:28.130
B.

08:29.990 --> 08:32.690
And after that we have to specify the index.

08:33.170 --> 08:34.910
Access is equal to zero.

08:35.270 --> 08:36.050
Execute.

08:37.310 --> 08:40.280
You can see here Ruby is deleted.

08:40.890 --> 08:42.060
No, no, down here.

08:42.260 --> 08:44.720
By default, access is equal to zero.

08:44.810 --> 08:46.810
So we don't have to specify this.

08:47.000 --> 08:48.620
It will take automatically.

08:49.100 --> 08:53.450
So this is all about deleting rows and columns in a data frame.

08:55.230 --> 08:58.430
Let us understand how to select the rules in a data stream.

09:04.230 --> 09:05.550
Selecting deludes.

09:07.000 --> 09:09.220
For Dick debate to frame the F.

09:11.490 --> 09:12.100
Great.

09:13.790 --> 09:17.540
Now, suppose we want to select this through this one.

09:17.720 --> 09:24.470
See, to do that type data frame the F Dot LLC.

09:26.760 --> 09:30.060
And specify the name of Duru executed.

09:31.740 --> 09:35.030
So this is the road that we have selected rules.

09:36.120 --> 09:37.590
Now take the data type.

09:41.190 --> 09:41.960
COPD.

09:43.220 --> 09:43.850
Based.

09:46.520 --> 09:51.150
Seaweed's, so data frame is also a number ECD.

09:55.400 --> 09:58.910
So this is Helvey again, select deals in a data frame.

10:02.350 --> 10:06.330
Let us understand how to select the subset of rules and columns.

10:16.760 --> 10:19.850
Selecting this subset of rules and columns.

10:21.120 --> 10:22.930
Dig, dig, dig it out from the F.

10:24.750 --> 10:25.400
Great.

10:26.080 --> 10:32.810
No, suppose they want to select this value zero point seven fold to do that type data frame.

10:32.860 --> 10:33.580
B f.

10:35.860 --> 10:38.220
Got a Locy here.

10:38.270 --> 10:40.550
We have to specify Drew and column.

10:41.820 --> 10:43.280
So this value has rule.

10:43.530 --> 10:51.990
See, and column X specify a row first, then the column execute.

10:53.550 --> 10:55.650
So this is a very wide output.

10:56.310 --> 10:57.870
We can select a subset.

10:57.960 --> 10:59.640
Also, let us see how.

11:01.460 --> 11:03.470
We will select these four values.

11:04.890 --> 11:08.820
Minus zero point nine three zero point nine for you.

11:08.910 --> 11:12.240
Two point six zero and zero point six eight.

11:13.070 --> 11:16.860
By the F dot Alosi.

11:18.460 --> 11:20.560
First, we have to specify do lose.

11:21.550 --> 11:28.810
So these four values has rules B and E specify as a list the.

11:33.080 --> 11:35.450
Then V, how to specify column names.

11:36.650 --> 11:43.970
VI and the VI commands the executed.

11:45.490 --> 11:47.640
So this is a very quiet output.

11:48.150 --> 11:52.680
First, we have to specify the rules and then we have to specify the columns.

11:53.260 --> 11:59.500
When we have to select multiple rows and multiple columns, then we have to specify rules as a list.

11:59.770 --> 12:02.050
And columns also as a list.

12:02.830 --> 12:05.920
So in this little deal, we have learned a lot of things.

12:07.140 --> 12:08.100
Literary vides.

12:09.240 --> 12:14.250
First, the Hill understood how to create a data frame to create a data stream.

12:14.280 --> 12:16.770
We use this method data frame.

12:19.340 --> 12:26.420
After that, we felt understood indexing and selection in a data frame, a single column in a data frame

12:26.480 --> 12:27.450
is another piece.

12:27.550 --> 12:33.560
Deeds and data frame is a bunch of numbers, c.D, with a common index.

12:36.940 --> 12:41.290
After that, we helped understood how to add a new column in a data frame.

12:41.710 --> 12:45.180
So this way we can add a new column in a data frame.

12:47.330 --> 12:53.000
Then we all understood how to remove columns and rules for the columns to be able to specify.

12:53.040 --> 12:58.610
Access is equal to one and for Duros we have to specify access is equal to zero.

12:58.940 --> 13:03.650
And to say this change button one and only be able to specify in place is equal to true.

13:06.130 --> 13:11.590
After that, we have understood how to select the rules like these to select the rules.

13:11.630 --> 13:13.180
We have to use this method.

13:13.690 --> 13:14.830
Dot Alosi.

13:18.030 --> 13:23.070
And at the end, we understood how to select a subset of rules and columns.

13:24.090 --> 13:26.940
So this first by 10, did all deal on data frames.

13:28.140 --> 13:30.090
I will see you in the next one.

13:30.370 --> 13:32.220
buildOn, happy learning.
