
"Write a concise Python function using pandas that takes a D...
Prompt
"Write a concise Python function using pandas that takes a DataFrame df and a target column name target, checks for missing values, imputes numerical missing values with the median, drops rows where target is missing, and returns the cleaned DataFrame."
Drag to resize