Hey everyone welcome to this video.
In this video we are going to learn about a legal concept that is known as cities gently before learning
anything.
I'm going to play you that band that is not something like any hard thing or any library that is very
hard to learn and that's functioning is very hard and complex bondage something a tool that makes us
to show the data like this table.
You have seen data in so many forms and pundits is just generally used to make the data look like these
forms so that we can easily look at these things.
This is like the Excel files.
And here you can see the growth things of movies worldwide do things.
So here you see the names the dollars they earn the E delivery list.
This is how we also use these funds to make the data in tablet form.
And that is the only thing.
And for doing the data in these tabling things like these tables we have two things.
One is known as this series.
Second is known as the data frames.
This thing is known as the data.
That how you are going to represent the data and just they are in form of proper tables.
This is just missing one like this one here.
This is the frame in which you have rows and columns and series is also something similar to that one
but less used.
And that we are going to cover here.
You will get to know that what the series is and what the data frames are in the next video.
So let's begin jumping on Jupiter notebooks.
So here launched the Jupiter notebooks also to install the pandas on your computer here.
In terminal you just need to write beep install bond us
and here this one I feel the one there.
And then it got installed in your computer.
And if you have Anaconda then it's already installed and you can also use the command Condor install.
Does it seem more efficient for this Anaconda.
Now after it got installed and even before it got here.
Don't go to the Jupiter notebooks and that installation in the terminal is for when you're using some
next top editor like the atom as atom.
Or just a command prompt.
Here I am using Jupiter notebook so if you even did not install Dedmon by using these commands of their
own determinant then still it will work.
So here first let me import the name by so import name pi as MP.
Then import bind us.
So this is all you can import.
The does just import Bond does as beauty.
That is the form that is generally used for bond us.
The nickname you can see now here I'm going to declare some data types that is first a list that is
with the name L. of let we have X more common.
And this one is going to be a character that is a b c b and c and then I'm going to have an in the list
that is in form of numbers so same do that one.
Then we have a dictionary
and dictionary something like index will be a and not the index a just one is the index and the data
will be a then similarly to natively B B then three data will be C then for later will be D.
And 5 last and they don't because the value will be E and then shift into or shifted on Mac.
Now here how we use depends.
We just you use this spend us to create this series and series can be created just using Billy note
series method and in series method.
Make sure s is capitalized then dependencies and if you use shift tab here you will get the parameters
that how many parameters are used there.
Like this one it is.
So here listen now you can see here there are a number of barometers here.
That is the data index type name because this is a form of table vacancy.
So a table not only just required the values it also required some indexes like many who have made tables
on paper you also write something like serial number then name then marks age or whatever you need.
That's all we also need indexing this one.
Then we have data type also name copy of the face.
But and we are just going to need these two now all these are not much of an input as there.
So this is work something like if I want to make a series of x i just use exhale then I will assign
this X the named data and that is if you haven't noticed there this data then should be redone or chipped
into and Mac.
You will see you get this table without any modal boundaries or partition.
So that's why this is known as a series.
If you assign this one to a variable like.
And here a you will get this one.
And if you check the type of a that is the type A you will get a series object.
Here we have series.
So that's the disease.
And that's how you can create this if you use something like this one and make this one a then it will
also work.
But why the data use there.
It just you can use to show the like someone who is going to check the program.
And then there is one more thing here.
Like we have X this thing and when I have done this here I get predefined indexes that is zero one two
three four.
But if you have noticed again in this one you have index options also.
That is after the data.
So one more thing here for one parameter.
You can just write X because the parameter must be data first parameter because without it all you're
going to do anything.
So that's why you can normally write the X instead of data is equal to x but if you're using more than
one parameters without any order then you have to use these things like if you are using index and the
next will be Vi.
So here this is how it will [REMOVED].
One two three four five.
That is the index by then.
If you change this one like if I convert all these into one and then hey I have all this one.
So let me change that again.
There it is.
Now if you are not using these things then there must be a thing that like if you do this thing now
you will get the same result.
Let me update this one also.
Now let's look at the thing here is you have to use them in the order that is same here like First Data
then index.
Then you have to use the data type the name like this one if you use something improper like VI here
and X there then you will get the opposite one day down the next an index will need data.
So that's why these data and index are also given not just to someone country but positioning is much
important.
Instead of writing those and much more efficient you can just write.
And this one is very easy.
You can remember this thing that first day that second engine X and I know this one is opposite to the
normal conditions like first we write the indexes.
So there must be index first.
But in here barometer first will be data because data is the first thing that we require in any table
without data.
There will be no table.
So this is about declaring the cities by using the data types here and bind us.
And if you want to convert a dictionary into series and you just write her dictionary then you will
get already the index is in dictionary and the values in dictionary that mission more make you more
clear about this one here.
If I have nine and I do that thing here I got nine.
So the indexes of dictionaries will be already get here instead of the default indexes default indexes
will begin to begin from 0 1 to 3 like that one and I will use it define indexes will be like this one.
So that's the series here.
Now one more thing like if you have something like ABC and then x is equal X two is equal to copy all
these.
Come on.
See.
And come on be here now.
If I have an endless series that is this one first bid and now I'm going to use ABC as in next and by
yes value Miguel's operations can be done on values not on these things.
They will be concatenated but numbers will be added.
So here I have VI X and if I take this on I go display.
Now another series that is B equal to copy this whole command C and command V here instead of this one
just right x2.
And if you check x to here.
Read Ruby here you will get reason or define x2 is not defined here.
This one is X I believe.
I have not just run this cell.
I have just moved there.
So here you get this one and this one whenever you make a change you have also load this thing like
shift returns so that this thing will be saved there.
So here this one this one and here this is now.
Here I have B and you have also seen it that is this one both same.
If you do something like c is equal to a plus b or just generally like a plus b and you hit enter then
you will get this thing that all the values with the same index like a BBC d e all will be added if
you notice that 1 1 2 2 2 4 3 3 6 4 4 8 5 5 10.
So is the automatic on cities negative values with the same indexes will be added.
Others like if you have this one f then there will be no added.
You just get this thing the values with the same indexes will be added others values will get men not
stand for line and one more thing all the values while get patients on operations form of cities with
genes in do floating point values I hope you get this thing that only same index will be added that
will get none if all of these values will be something like this one I also said this one also G and
this on Q You will get something like this where
so that's what the automatic on C D is and you can do any type of operation
so here you get again Dedmon so there about the values here and one more thing like if you want to access
any value in this series and if you do something like a and then pass the index like this series I have
c c there in this form then you will get the value so this is just like the last part of the index and
you will get this one one more thing if you pass this one here you will get added because C is not a
variable it is just an index and that index is also element of that list so you just need to pass this
one with the court and he will get three.
So there is the indexing is if you do something like this one for slicing you can also do just see index
and then these dots that means that every value after C and after c v have three four and five.
Here we have three four five and if you will pass here E then you will get again these values.
So here it is.
And if you have noticed there the last value is also included in these and if you do something like
this one you get a complete list because that one is begin from zero.
So here the slicing also.
Now most of the concepts are now done about this series and I hope you get all these and this is very
easy.
So there is this series is but we are going to use them less in the course and even practically they
are not used much the data points are more efficient than these things.
So we will learn about the data frames in the next video.
Thanks for watching and we will continue in the next video.