Task: Apply Function to Each Cell in a Pandas DataFrame
Task: Apply Function to Each Cell in a Pandas DataFrame: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that applies a custom function to every cell in a pandas DataFrame. The function should replace all occurrences of the string 'foo' with 'wow' in each cell of the DataFrame.
The task
Write a Python script that applies a custom function to every cell in a pandas DataFrame. The function should replace all occurrences of the string 'foo' with 'wow' in each cell of the DataFrame.
Part of PrimeIntellect/Terminal-Lego-15k.