.parse() 方法
從上一個練習我們知道,theater_report 活頁簿有 4 個分頁標籤:sales、ticket types、theaters 和 movies。我們把每個分頁轉成一個 DataFrame,並查看它們。
theater_report 活頁簿物件已經為你載入好了。
本練習屬於課程
給試算表使用者的 Python
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Parse the sales tab of the theater report
sales = theater_report.____(____)
print(sales.head())