我想确定我的pivot_表的大小,但它不起作用

2024-03-29 06:59:55 发布

您现在位置:Python中文网/ 问答频道 /正文

这是我的数据框架; 我想做一张50*50大小的桌子。 enter image description here

我使用pd.cut来剪切pivot_table,它在其他数据帧中工作。 但有些数据帧不起作用,比如36*35大小之类的

enter image description here

enter image description here

如何将此pivot_表的大小固定为50*50