WEBVTT

00:00.960 --> 00:06.660
In this video we learn how to update our pandas installation to the latest version so pandas are still

00:06.660 --> 00:11.690
under development and has made tremendous improvements in the last couple of months.

00:11.970 --> 00:18.580
And actually updating your pandas installation and using up to date code is in my view really essential.

00:18.870 --> 00:24.080
So using outdated code can be really painful and time consuming and annoying.

00:24.900 --> 00:32.740
So to update your installation we have to go to the anaconda prompt so we have ifl become a contact

00:32.750 --> 00:40.800
prompt and if you are using a Mac or Linux operating system then you have to open a terminal window.

00:41.220 --> 00:47.850
So we are here now in the anaconda prompt and first of all we can check all libraries and packages that

00:47.850 --> 00:54.750
are installed in our Anaconda installation and we can do this with the command to come down list

00:59.850 --> 01:07.530
and we have all packages and libraries that we have installed in our Anaconda installation and for example

01:07.530 --> 01:14.700
we can see here for example here the panda's library and we can also see the current version that we

01:14.700 --> 01:15.770
have installed.

01:15.860 --> 01:20.760
So in this case it's a diversion a zero point twenty three point four.

01:21.300 --> 01:25.590
And for example we can also see here our current installation of an umpire.

01:25.950 --> 01:29.310
So it's a version one point fifteen point one

01:34.250 --> 01:41.900
and now we can update single libraries or packages with the command kinda update and then using the

01:41.960 --> 01:42.800
library name.

01:42.800 --> 01:47.790
So for example let's assume that you want to update our pandas library.

01:48.020 --> 01:51.410
So then we have to use Condor update pandas

02:04.020 --> 02:06.800
so Anaconda is now checking for the latest pandas.

02:06.810 --> 02:08.980
Imagine that we can download.

02:09.150 --> 02:15.750
So here we can see now the following pictures will be downloaded so we not only get the pandas update

02:15.780 --> 02:21.990
to us and is there a point twenty four point one an icon that also proposes to update for example the

02:21.990 --> 02:27.330
number pi packets and we can see the following packages will be updated.

02:27.330 --> 02:33.900
So we have here the pandas package and our current installation so point twenty three point four.

02:34.410 --> 02:38.290
And we can update this two point twenty four point one.

02:38.730 --> 02:42.940
And also again we can see that the following packages will be downgraded.

02:43.050 --> 02:50.190
So by updating some packages Anaconda also ensures the best compatibility between the packages and libraries

02:50.610 --> 02:56.520
and therefore it might be the case that some packages are libraries that will be downgraded.

02:56.580 --> 02:59.070
And finally we are asked here to proceed.

02:59.070 --> 03:02.100
So either we can say here yes or no.

03:02.430 --> 03:04.950
And in this example here we do not want to proceed.

03:04.950 --> 03:06.090
So I tap here.

03:06.090 --> 03:06.650
No.

03:07.410 --> 03:13.980
And instead of updating all libraries and packages separately you can also update our full Anaconda

03:14.040 --> 03:19.470
distribution and we can do this with the command Conda update Anaconda

03:31.130 --> 03:38.030
and by updating the full Anaconda installation we are actually updating all packages and libraries and

03:38.030 --> 03:44.660
we are also installing new packages that have been added to the anaconda installation since our last

03:44.660 --> 03:47.950
update so let's have a look here

03:58.850 --> 04:04.130
so here we can see the package plan and the following packages will be downloaded.

04:04.250 --> 04:06.080
So that's quite a few here.

04:07.810 --> 04:14.200
Then the following new packages will be installed and then we have packages that will be updated.

04:14.200 --> 04:22.600
And finally we have packages that will be downgraded to ensure full compatibility between our libraries.

04:22.600 --> 04:29.860
So instead of updating all libraries and packages separately it is definitely advisable to update the

04:29.860 --> 04:32.730
full Anaconda distribution and installation.

04:32.950 --> 04:37.120
So at least for beginners this is definitely the best solution there.

04:37.420 --> 04:42.880
And by doing so you can ensure that you have actually the optimal best portfolio of all packages and

04:42.880 --> 04:46.660
libraries with the best compatibility.

04:46.660 --> 04:51.040
And again here we are asked whether you want to proceed and now we press here.

04:51.040 --> 04:51.550
Yes

04:54.900 --> 04:59.100
and I'll anacondas downloading and updating the packages

05:03.990 --> 05:06.910
so this will take a while here.

05:06.910 --> 05:08.920
So now we are finished with the update.

05:08.920 --> 05:15.940
So once again I refuse to the command kinda update Anaconda and it says all requests the packages already

05:15.950 --> 05:20.860
installed and now we can check actually again the list of packages.

05:20.860 --> 05:23.680
This is the command Condor list

05:29.710 --> 05:34.330
and we can see the list with all of the updated Pegasus

05:38.840 --> 05:45.110
and we can see for example our pandas library that we have still the version or point twenty three point

05:45.110 --> 05:46.010
four.

05:46.040 --> 05:52.760
So the latest version is actually the version o point twenty four but for compatibility reasons the

05:52.760 --> 06:01.100
best and most stable version this is the 0 point twenty three but this will certainly change in the

06:01.100 --> 06:02.140
near future.

06:02.480 --> 06:09.770
So if you nevertheless want to update pandas to the latest version then we can do so with a condo update

06:09.770 --> 06:10.840
pandas.

06:10.940 --> 06:16.190
But the best ways actually to stick here to the optimal Anaconda installation.

06:16.220 --> 06:16.730
All right.

06:16.730 --> 06:23.940
With this we are finishing with the video on updating pandas and also Python and the full Anaconda installation.

06:24.020 --> 06:28.850
So my recommendation is to frequently update your installation.

06:28.850 --> 06:33.140
So thanks for watching and I hope to see you also in the next video by.
