Task: Find the Column Name with Maximum Value for Each Row in a DataFrame
Task: Find the Column Name with Maximum Value for Each Row in a DataFrame: a task in Terminal-Lego-15k (Harbor dataset). You are given a CSV file containing a DataFrame with numerical values across multiple columns. Your task is to create a Python script that adds a new column called "Max" to the…
The task
You are given a CSV file containing a DataFrame with numerical values across multiple columns. Your task is to create a Python script that adds a new column called "Max" to the DataFrame. This new column should contain the column name (label) of the maximum value for each row.
Part of PrimeIntellect/Terminal-Lego-15k.