导入`pandas`库,读取Excel工作表,并指定标题行为第
3
行,即`header
=
2
`。然后用`df.head()`显示前n行数据
import
pandas as pd
df
pd.read_excel(
"pandas读取excel表格.xlsx"
, header
)
df.head()