Real data has holes, and most models refuse to run with one. Filling with the median is the standard first answer, and the reason it is the median rather than the mean is worth understanding.
Write fill_missing_price(df).
df has columns listing_id and price, where price may contain nulls. Return a new DataFrame with the same columns where every null price has been replaced by the median of the prices that were present.
You have read the opening. The rest is free with a Bezen account, and no card is needed.
Behind the sign-in