我有一个 xml 列表,假设:
xmls = [
'<note>
<to>John</to>
<from>Janet</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>',
'<note>
<to>Tom</to>
<from>Jennifer</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>'
]
我想将该列表变成这样的 Pandas DataFrame:
to from heading body
John Janet Reminder Don't forget me this weekend!
Tom Jennifer Reminder Don't forget me this weekend!
非常感谢!