In this video, we will divide over the biggest data stream into two parts.
There it is, our X variables, which are our independent variables and variable, which is our target
variable or dependent variable.
You know, that were target variable is collection variable and all the remaining 18 variables, auto
or independent variable.
Since we want all the 18 variables in the world X data frame, we can either rate all the 18 column
names using B.F. and the square record, or we can use B.F. dot block to remove collection variable
from our data frame.
Since removing the election variable is easier.
We'll use lock.
I hope you remember lock from our crash course in lock.
We first have to mention the rules since we want all the rules.
We just have to put a call on symbol.
This means all the rules.
And then after comma, we need to specify the columns we need since we need all the columns except the
collection column will be of columns.
And this should not be equal to collection.
We are saying that.
Get all the columns except the collection.
Call them.
So if we write exequatur, would be, if not lock.
And first, we need to specify the rules.
We need all the rules.
That's why we are we are putting Colen and we don't need collection.
Well, if we run this, we have our equitable.
We can look at the sample of this data frame by using XDR type method.
You can see all lower independent very well out here and our dependent variable that is collection,
we're will not in this data frame.
We can also check the shape of this data frame to confirm that there is no collection of.
Since I would be if.
Had 20 golems.
We have only 19 columns in our X little frame.
Similarly, we will create a separate data frame for our targeted variable, which is why.
And here we are then in the collection are able from our B of frame.
So we will just start D.F..
And in this square record will mention the column name, which is collection.
We can run this.
And again, we can take the simple of first fibros.
So here we have the sample of our way.
And you can see that we only have one column here.
Is zero one, two, three, four our indexes.
And this forty eight thousand forty three thousand two hundred are the values.
These are our collection values.
We can again use the shape method to get the number of rows of our visitors'.
You can see that the Nemeroff rose.
It's five hundred and six.
Same as our equity will be if we had even.
In the next video, we'll split our data and to test and drain.
But.