Commit b66b99ff by zhengxinhan

add multisheet script

parent e6254597
......@@ -110,11 +110,11 @@ def is_ccf_a(venue, threshold=70):
if __name__ == "__main__":
# 读取表头(第4行作为列名)
original_header = pd.read_excel(input_file_path, nrows=0, header=3)
original_header = pd.read_excel(input_file_path, nrows=0, header=1)
column_names = original_header.columns.tolist()
# 读取数据(从第8行开始)
input_df = pd.read_excel(input_file_path, skiprows=7, header=None, names=column_names)
input_df = pd.read_excel(input_file_path, skiprows=2, header=None, names=column_names)
# 输出表头和数据的基本信息
print("表头元素:")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment