Open In App

Data-Analysis-fork-ds | Question 5

Improve
Improve
Like Article
Like
Save
Share
Report

Q5. Consider the column of the dataframe df[‘GFG’], with two values ‘Code’ and ‘Data’. What will be the name of the new columns pd.get_dummies(df[‘GFG’]) ?

(A)

1 and 0

(B)

Just Data

(C)

Just Code

(D)

Code and data


Answer: (D)

Explanation:

Quiz of this Question
Please comment below if you find anything wrong in the above post


Last Updated : 06 Dec, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads