Task: Correctly Read CSV in Pandas While Renaming Columns
Task: Correctly Read CSV in Pandas While Renaming Columns: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that reads a CSV file using Pandas, selects only specific columns ("Date", "Open Price", "Close Price"), renames them to shorter names ("Date", "O", "C"), sets "Date" as…
The task
Write a Python script that reads a CSV file using Pandas, selects only specific columns ("Date", "Open Price", "Close Price"), renames them to shorter names ("Date", "O", "C"), sets "Date" as the index, parses dates, and ensures the data values are correctly loaded (not NaN).
Part of PrimeIntellect/Terminal-Lego-15k.