![](/img/trans.png)
[英]Using Pandas to pd.read_excel() for multiple worksheets of the same workbook
[英]python: How to read multiple worksheets of the same workbook using pandas
我有Excel,想閱讀第二個工作表。 但是每次只獲得第一個工作表。 有沒有辦法獲得第二個工作表而不給出其名稱?
import pandas as pd
dfs = pd.read_excel("data.xlsx")
print dfs
使用sheet_name
下參數pd.read_excel
讀取特定工作表。
例:
sheet_name=1
讀取第二張紙。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.