为什么用 Python 处理 Excel?
df = pd.read_excel(file_full_path, usecols=["日期", "地区", "销售额"])plt.bar(summary_df["地区"], summary_df["总销售额"], color="#1f77b4")df = pd.read_excel("数据文件.xlsx", usecols=["日期", "销售额", "地区"])df = pd.read_excel("数据文件.xlsx", sheet_name="销售数据") # 按名称。
Wang15302026-01-18 22:30:52