Q70
In Pandas, which method is used to create a new column based on conditional logic applied to existing columns?
A.
melt()
B.
df['new_column'] = np.where(...)
AnswerC.
sort_values()
D.
None of the above
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board