在dataframe中将数据从列堆叠到行我正在尝试在熊猫数据框架中按年度堆叠财务价值。但无法开始 我所做的只是 df1 = df.set_index(['refnum','y1gp','y2gp','y3gp']).stack()\ .re ...2024-05-19 已阅读: n次