WEBVTT

00:02.120 --> 00:06.630
Hello and welcome to this tutorial from this tutorial, we understand.

00:06.920 --> 00:09.120
No indexing and selection.

00:09.380 --> 00:11.120
Let us begin with the basics.

00:11.990 --> 00:19.850
First, we have to import the library import numpty as and.

00:23.060 --> 00:32.300
Now create an ad A and B dot at age 10, Comac 21.

00:36.440 --> 00:40.970
Take the elements in this array, numbers from 10 to 20.

00:43.080 --> 00:50.890
Let us understand, indexing first typed the name of Eddie here V how to select No.15.

00:51.430 --> 00:56.230
Let us take the index location zero one, two, three, four, five.

00:56.240 --> 00:58.070
You for you.

01:00.270 --> 01:01.140
Fifteen.

01:01.770 --> 01:11.120
No, we will select the numbers from 10 to 14 by the name of Eddie Index zero two for you.

01:15.130 --> 01:20.860
Great numbers, strong, 10 to 14, upper bound is excluded here.

01:21.370 --> 01:23.650
Zero, one, two, three, four.

01:24.280 --> 01:27.460
We have specified indexed for you as a part bound.

01:28.240 --> 01:30.880
That is 415 and it is excluded.

01:32.440 --> 01:36.120
Now, suppose we have to select all the elements from this number.

01:36.490 --> 01:48.100
Well, to do that, we have to specify from index to then call execute all the numbers from Towill up

01:48.100 --> 01:48.790
to end.

01:50.530 --> 02:00.190
Now, suppose we have to select all the numbers of 215 to do that type name of the Eddie Colon Index,

02:00.190 --> 02:01.330
location six.

02:03.900 --> 02:05.730
All the numbers up 215.

02:06.640 --> 02:10.360
So this is all about the indexing and selection in array.

02:12.130 --> 02:15.100
Let us understand about the broadcasting values.

02:30.210 --> 02:32.100
Take the elements in Eddie.

02:35.750 --> 02:39.710
No broadcast to do that type edit name.

02:41.490 --> 02:45.890
Indexes from zero to for you is equal, 200 executed.

02:47.170 --> 02:48.480
Now take the eddy.

02:50.580 --> 02:54.000
You can see here foot five elements are a hundred.

02:54.810 --> 02:59.040
So using the broadcasting, we can change the elements in an array.

02:59.970 --> 03:01.650
No, really find this at a.

03:04.230 --> 03:05.640
ENPI Dot Huddinge.

03:09.200 --> 03:10.770
David Guama, 21.

03:13.840 --> 03:14.950
Take this, Eddie.

03:16.890 --> 03:17.550
Great.

03:19.390 --> 03:26.200
Now, take this slice of this, Eddie, elements from index zero to six.

03:28.830 --> 03:30.810
Save this in a variable.

03:33.270 --> 03:34.260
At Eddie.

03:39.400 --> 03:40.300
Staple here.

03:43.110 --> 03:43.630
Great.

03:45.290 --> 03:46.850
Now, take this variable.

03:49.490 --> 03:51.440
Numbers from 10 to 15.

03:52.370 --> 03:55.130
No use broadcasting on this variable.

03:57.020 --> 03:58.230
Slice at a.

03:59.990 --> 04:03.020
All the elements is equal to ninety nine.

04:06.380 --> 04:07.660
Take this variable.

04:09.740 --> 04:11.920
All the elements are 99.

04:13.100 --> 04:14.270
No joke or regional.

04:14.370 --> 04:14.870
Eddie.

04:18.050 --> 04:23.920
Here to let us understand this first, we have defined an eddy.

04:24.230 --> 04:25.630
This one, a R ah.

04:26.120 --> 04:30.820
These are the elements in this eddy from number 10 to 20.

04:31.580 --> 04:39.350
Then we have taken a sleighs that is from index zero to six and we help broadcaster this variable slice

04:39.390 --> 04:42.220
and dice score a R with 99.

04:42.890 --> 04:46.250
So all the elements in this variable are replaced.

04:46.880 --> 04:52.760
But when we replace all the elements in a sleigh's, the ordinal eddy is also changed.

04:53.860 --> 04:57.370
That means data is not copied in this variable.

04:57.580 --> 05:00.730
It is just a view of original at a number.

05:00.760 --> 05:03.190
Does that to our memory issues.

05:04.090 --> 05:05.500
We can make a copy.

05:05.630 --> 05:10.050
Also, let us see how you define a variable.

05:10.580 --> 05:15.280
Edit underscore copy is equal to or regional at a dot.

05:15.850 --> 05:16.460
Copy.

05:21.410 --> 05:22.670
Now, take this at a.

05:24.720 --> 05:26.700
Same as orignal at a.

05:27.690 --> 05:29.490
No broadcast this, Eddie.

05:32.960 --> 05:34.180
Name of the Eddie.

05:35.810 --> 05:38.200
All the elements in the 200.

05:41.790 --> 05:43.080
Now, take this at eight.

05:45.950 --> 05:46.880
We have to take this.

05:46.970 --> 05:47.480
Eddie.

05:51.210 --> 05:52.700
All the elements are handed.

05:52.920 --> 05:53.430
No.

05:54.490 --> 05:55.730
Now, take the copy.

06:00.750 --> 06:03.780
All the elements are the same as previous one.

06:04.230 --> 06:06.720
So there is no effect on this copy.

06:07.620 --> 06:09.390
Let us see one more example.

06:10.160 --> 06:13.160
Redefine this at a ENP dot.

06:13.430 --> 06:14.070
Arrange.

06:18.370 --> 06:19.070
Zero karma.

06:19.230 --> 06:19.840
Live on.

06:25.610 --> 06:27.410
Numbers from zero to 10.

06:28.610 --> 06:30.050
Now take a slice.

06:34.000 --> 06:34.520
Eddie.

06:37.340 --> 06:39.380
Indexed location zero to five to.

06:43.180 --> 06:44.250
Jake, this displays.

06:47.820 --> 06:48.380
Great.

06:49.070 --> 06:53.030
Zero, one, two, three, four, no broadcast.

06:57.250 --> 06:58.890
Select all the elements.

07:07.950 --> 07:10.170
No, all the elements are 100.

07:12.380 --> 07:13.880
Take additional, Eddie.

07:17.590 --> 07:19.870
First, few elements are changed.

07:20.800 --> 07:22.300
Now make a copy.

07:24.380 --> 07:31.370
At HCB to name off the air a copy.

07:35.960 --> 07:37.130
No broadcast.

07:41.570 --> 07:42.650
All the elements.

07:43.830 --> 07:44.630
200.

07:47.310 --> 07:48.360
Take this, Eddie.

07:53.350 --> 07:55.250
All the elements are 200.

07:55.360 --> 07:58.290
No, no Jake or regional Eddie.

08:00.320 --> 08:00.930
Same.

08:01.110 --> 08:01.960
No change.

08:03.050 --> 08:11.390
Let us understand this again, when we take a slice of an eddy like this, then it is just a view of

08:11.540 --> 08:12.420
regional eddy.

08:13.070 --> 08:18.100
Whatever changes we will do in this eddy will be reflected in orignal eddy.

08:18.670 --> 08:21.800
To a word that we can do this.

08:22.010 --> 08:24.400
We can take a copy of this Eddy.

08:25.280 --> 08:31.700
So this tutorial NCR, let us revise what we have learned in this tutorial here.

08:31.700 --> 08:35.230
We are understanding, indexing and selection in numpty.

08:35.840 --> 08:37.820
It is very similar to the lists.

08:40.590 --> 08:46.170
Then Vho understood broadcasting devalued to broadcast, devalued velho to light.

08:46.200 --> 08:51.850
Name of the A then type the index locations and specify a number.

08:54.620 --> 08:57.680
And at the end, V.L. understood how to use Kopi.

08:59.060 --> 09:00.200
The copy mattered.

09:01.160 --> 09:03.170
So despite ended Odille NCA.

09:03.740 --> 09:05.660
I will see you in the next one.

09:05.950 --> 09:07.780
buildOn Happy learning.
