開始使用免費開始

.parse() 方法

從上一個練習我們知道,theater_report 活頁簿有 4 個分頁標籤:salesticket typestheatersmovies。我們把每個分頁轉成一個 DataFrame,並查看它們。

theater_report 活頁簿物件已經為你載入好了。

本練習屬於課程

給試算表使用者的 Python

檢視課程

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Parse the sales tab of the theater report
sales = theater_report.____(____)

print(sales.head())
編輯並執行程式碼