python padas 读取excel

import pandas as pd

data = pd.read_excel(excel_path, sheet_name='Sheet1', engine="openpyxl")   # engin 引擎参数:openpyxl, xlrd
for index, row in data.iterrows():
    print(index)
    print(row)

注:xlrd

xlrd:用于读取 Excel 文件;
xlwt:用于写入 Excel 文件;
xlutils:用于操作 Excel 文件的实用工具,比如复制、分割、筛选等;

posted @ 2024-09-02 16:09  二月雪  阅读(4)  评论(0编辑  收藏  举报