A new column called Flag was created by where statement using numpy as follows.
import numpy as np import pandas as pd np.random.seed(250) a = np.random.ra