Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Creating dummy variables in python

$
0
0

@syed.danish wrote:

Hi,

Currently I am working on megastar contest on AV. Below is the structure of data set :

I want to create new variables for each skill as shown below for two cadidates :
1->['sas','python','r']
2->['r','tableau']

output :

I have changed the "Skills" variable in from of a list for each candidate as shown above(for the two candidates), furthermore I have tried pd.get_dummies but it is taking each element as different levels.

Please suggest the fastest way to do so in Python.

Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles