Hey everyone so welcome to this video.
In this video we are going to have something like how you can add more rules and more columns in the.
So we have done how to define the data frames and we have defined a very unique data field also that
I have not removed from here.
So to create any column in a data frame you will do something like First let me define this one in need
of a muscle with D F and this one DFA
and there we go.
Now here we have the f this one.
But if you want to add another column so you can do something like Here I have my f then you will pass
the brackets and in brackets the column you want to add the like.
After that we have what we get it is nothing up to it.
So here we have something like B and then this will be equal to.
Like if I want to add something like Here I have my
plus and then def that element and I want to make on your column that is the sum of these two.
That is something I said here and should be done.
Now if you bring D if you will get an entire column that is this one and that's how you can create this
thing.
Now if you try something like this one that is we have this one chapter done chapter done chapter done
and there we go.
Now here we have done this one was there is now this one doesn't change called Sound 15 I don't know
why maybe this deal on
so this is a task for you try to make it a frame that consists of adding the models.
So I have told you that how you can add the new column in a data frame that is generally the discussion
come on and they will know how to remove any column on a needle.
So do removes any visual we have simple matter that is the F don't drop their drops transform deleting
detail that is data.
We want to do it and you just need to pass the draw that is like if I want to delete this.
Then I will pass that E and make sure you always pass that E with the courts.
I get better.
So this is a method I have passed back upstairs method sir.
Define inferences.
Now David go.
So here if you notice we have not e here.
That's how you can delete these rows.
But one more thing now if you have a b here you will again get it.
That's the thing that the thing you delete.
There is only deleted here.
That will not get permanently deleted.
And if if you Breashears shift redone you will get something like this one in drop method you want.
So here you have level and Xs and few more things like index column in place.
So here we have this in place that is something very important one in case of deleting any.
So to delete that permanently you also need to pass here something like in place and in place we have
only two values that is true and false through these four.
Like if you do not want to delete that one.
And so it defaults and 2 1 is if you want to delete that permanently.
So now if I press you return there we go.
And now I have the F in.
So here we have def without any e.
If you again print def there will be no E so there so you can delete any element in a data frame.
And that element means the drop in our data frame.
Now what if you want to delete the column that how you can delete these columns.
So to delete any column if you try the same thing like the F don't drop princes and vote if I want to
do A B and shifted then you will get at it.
That's because this one is asking for.
We can see that index and index we have are only the ABC B W X Y and Z are not indexes that the column
numbers so to make them selected here.
If you again press here shift that you will get this one axis.
So in 2D.
The difference in that is we are dealing here.
We had general two axis.
That is zero.
This one is 0 x is that is by default here.
This one column is one you can assume that accesses y axis.
So access is by default 0 by used 1.
So you also need to pass here something like X is and that will be 1.
And if you try the thing now B is removed.
But again the same thing if you do again that one base not permanently.
So again you need to pass something like in place and that will be true not true.
It's true.
There we go.
And now here we do not have B if you try again being permanently removed from there.
So that's how you can remove any element.
Sorry any column and then neutral from a data frame and you can also do this thing to Dedmon that killed
did of him and if you want that one also I can show you here we have this one if I need to remove this
B so I can just do the fun Don't rope here first bus B then pass X is fun and then we have in place
is equal to true and there we go if you print now do you have fun you do not have B again if you want
to remove the chicks but not permanently then here we have this one thing like Sir and here we do not
have these cubes and that's how you can delete this one and if you delete something from middle like
monkeys they will get that one removed from there and these columns can get closer to the W by one of
gap there that's how you can delete any element.
So we are now also done with creating and deleting the elements from data stream in the next video we
will learn about that how you can access the elements.
So thanks for watching.
And soon the next video.