몇 가지 조정을했습니다. 여기서 작동하도록 코드를 얻었습니다. 그러나 열 표제가 끝나고 열 제목이 있어야합니다. 대신 1, 2, 3 ....과 같은 열 표제를 사용합니다. xlsx 파일에서 열 이름을 가져오고 싶습니다.xlsx에서 동일한 열을 사용하여 파이썬에서 여러 xslx 파일을 여는 방법
# import modules
from IPython.display import display
import pandas as pd
import numpy as np
pd.set_option("display.max_rows", 999)
pd.set_option('max_colwidth',100)
%matplotlib inline
# filenames
file_names = ["data/OrderReport.xlsx", "data/OrderReport2.xlsx"]
# read them in
excels = [pd.ExcelFile(name) for name in file_names]
# turn them into dataframes
frames = [x.parse(x.sheet_names[0], header=None,index_col=None) for x in excels]
# concatenate them
atlantic_data = pd.concat(frames)
# write it out
combined.to_excel("c.xlsx", header=False, index=False)
무엇이 문제입니까? 'pd.read_excel'으로 반복하고 가져 오기 만하면됩니다. – Parfait