Task: Remove DataFrame Columns That Contain Only Zeros
Task: Remove DataFrame Columns That Contain Only Zeros: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that reads a CSV file containing a DataFrame with numeric values (primarily 1's and 0's), removes all columns that contain only zeros , and saves the resulting DataFrame to…
The task
Write a Python script that reads a CSV file containing a DataFrame with numeric values (primarily 1's and 0's), removes all columns that contain **only zeros**, and saves the resulting DataFrame to an output file.
Part of PrimeIntellect/Terminal-Lego-15k.