group by
读取excel文件中的内容
import pandas as pd
from tabulate import tabulate
df = pd.DataFrame(pd.read_excel('test.xlsx'))
headers = df.columns
print(tabulate(df, headers=headers))
excel文件中的内容如下
D:\Python\Anaconda\python.exe D:/Python/test/day1/test.py
成单费用 所属地区 销售人员 数据来源 数据大类
-- ---------- ---------- ---------- ---------- ----------
0 4304 A 刘颖 渠道代理 线上