Task: Select DataFrame Columns by Regex Pattern
Task: Select DataFrame Columns by Regex Pattern: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that reads a CSV file containing a pandas DataFrame and selects only the columns whose names begin with the letter d using regex-based column selection. The filtered…
The task
You need to write a Python script that reads a CSV file containing a pandas DataFrame and selects only the columns whose names begin with the letter `d` using regex-based column selection. The filtered result should be saved to an output CSV file.
Part of PrimeIntellect/Terminal-Lego-15k.