Task: Replace NaN Values with Column Averages in Pandas DataFrame
Task: Replace NaN Values with Column Averages in Pandas DataFrame: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that replaces all NaN (Not a Number) values in a pandas DataFrame with the average (mean) of their respective columns.
The task
You need to write a Python script that replaces all `NaN` (Not a Number) values in a pandas DataFrame with the average (mean) of their respective columns.
Part of PrimeIntellect/Terminal-Lego-15k.