[ 18 ]
As mentioned before, some of these columns are words or phrases, such as
Mjob
,
Fjob
,
internet
, and
romantic
. These columns need to be converted into numbers, which can be
done using the
HFU@EVNNJFT
function, which is a Pandas feature, and we need to mention
which columns are the ones that we want to turn into numeric form.
In the case of
Mjob
, for example, the function it is going to look at all the different possible
answers or the values in that column and it's going to give each value a column name.
These columns will receive names such as rename the columns to
Do'stlaringiz bilan baham: |