HF RL Explorer

Task: Convert an XML File to a Pandas DataFrame

Task: Convert an XML File to a Pandas DataFrame: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that reads an XML file containing structured data and converts it into a well-formatted pandas DataFrame. The script should parse all item entries from the XML, extract their…

The task

Write a Python script that reads an XML file containing structured data and converts it into a well-formatted pandas DataFrame. The script should parse all item entries from the XML, extract their attributes and/or child element values, and produce a DataFrame with the correct columns. The resulting DataFrame should…

Part of PrimeIntellect/Terminal-Lego-15k.