Python 3.x Excel-拼花地板工作表
如何将excel工作表转换为拼花地板 我正在尝试读取一个包含多个工作表的excel文件,分别读取每个工作表,并将它们转换为一个单独的拼花地板文件,然后编写同一个文件,有没有办法用Python实现这一点 我正在使用下面显示的代码片段来阅读各个工作表,但我仍停留在转换部分Python 3.x Excel-拼花地板工作表,python-3.x,excel,parquet,worksheet,Python 3.x,Excel,Parquet,Worksheet,如何将excel工作表转换为拼花地板 我正在尝试读取一个包含多个工作表的excel文件,分别读取每个工作表,并将它们转换为一个单独的拼花地板文件,然后编写同一个文件,有没有办法用Python实现这一点 我正在使用下面显示的代码片段来阅读各个工作表,但我仍停留在转换部分 import pandas as pd import numpy as np #path of the file to be converted path=r'path of the file' #Reading the Ex
import pandas as pd
import numpy as np
#path of the file to be converted
path=r'path of the file'
#Reading the Excel File
Workbook=pd.ExcelFile(path)
#Reading the Worksheets within the Excel File
Worksheet=Workbook.sheet_names
print(Worksheet)
for sheet in Worksheet:
converter=pd.read_excel(path,sheet_name=sheet)
*#print(type(converter))
# output=converter.to_parquet('converter.parquet.gzip') " Commented out as it is not working properly"
#a=pd.read_parquet('converter.parquet.gzip')
#print(a)*