For years I've used Pandas on a daily basis and often (but not nearly as frequently) use Numpy. Most of the time I'll do something like:
import pandas as pd
import numpy as np
But there is also the option of using Numpy directly from Pandas:
df['value'] = pd.np.where(df['date'] > '2020-01-01', 1, 0)
Does anyone know if either one of these options is significantly more performant than the other?