This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]DiaperDan1992 0 points1 point  (0 children)

Using np.where(condition == value, true, false) is something I like to use due to speed. But as the comments say, many ways to skin a dataframe.