HF RL Explorer

Task: Check and Filter DataFrame Columns by dtype in Python Pandas

Task: Check and Filter DataFrame Columns by dtype in Python Pandas: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that demonstrates elegant ways to check the dtype of columns in a pandas DataFrame and apply different processing logic based on whether columns are…

The task

You need to write a Python script that demonstrates elegant ways to check the dtype of columns in a pandas DataFrame and apply different processing logic based on whether columns are numeric or string/object type.

Part of PrimeIntellect/Terminal-Lego-15k.