简体   繁体   English

阅读MS Excel XML文件到pandas dataframe?

[英]Read MS Excel XML file to pandas dataframe?

I have an MS Excel XML (2003) file with the following metadata: 我有一个MS Excel XML(2003)文件,其中包含以下元数据:

<?xml version="1.0" encoding="UTF-8"?>
<?mso-application progid="Excel.Sheet"?><Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" 
xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" 
xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" 
xmlns:x="urn:schemas-microsoft-com:office:excel" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">

I'd like to read it into a pandas dataframe. 我想把它读成熊猫数据帧。 What's a good way to go about doing this? 这样做的好方法是什么? Thanks. 谢谢。

Did you try Canopy python's pyxll , it is advertised as "Python for Excel Solution" 您是否尝试过Canopy python的pyxll ,它被宣传为“Python for Excel Solution”

Check it out please and see if it solves your problem. 请检查一下,看看它是否解决了您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM