I have a dataframe with 1 million rows. I would like to impute missing categorical values using the mode based on weight and price.
Per my method below, this takes almost