Tsallaka zuwa abun ciki
Justice Tech School

Excel and Other Formats

read_excel and to_excel need the openpyxl package. pandas also reads Parquet, SQL, HTML tables and the clipboard. Shown as code because it needs files.

Example
import pandas as pd
df = pd.read_excel('sales.xlsx', sheet_name='Q1')
df.to_excel('out.xlsx', index=False)
df.to_parquet('data.parquet')
tables = pd.read_html('https://example.com/table.html')

Exercise

Read Excel.

pd.("a.xlsx")

Quiz Test

Which package does Excel need?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.