Try to search your question here, if you can't find : Ask Any Question Now ?

create a new column with three conditions using np.where

HomeCategory: stackoverflowcreate a new column with three conditions using np.where
Avatarbhawya asked 5 days ago

how can I get three conditions in np.where(). normally it uses only two conditions how can I get three.
Like I need to Create a new column Better_Event that stores ‘Summer’ ,’Winter’ or ‘Both’ based on the comparision between the total medals won in Summer event and Winter event (i.e. comparision between the Total_Summer and Total_Winter columns) using “np.where()”function.

1 Answers
Best Answer
AvatarMannu answered 5 days ago
Your Answer

18 + 3 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com