我有一个像这样的熊猫数据框架,其中所有类别的头部数据都是可用的: Table depicting category wise head wise values where the heads arein the columns 现在,我想要一个pandas函数返回一个数据帧,如下图所示,其中head值将显示为每个类别的行: Table where all the heads for a partic
我希望能够检查每个部分是否至少有一个布尔值设置为1。下面是我想要的一些伪代码:for sections in config_file: for name inconfig file".format(section) if exit_test:问题:
1)如何执行第一个for循环并迭代配置文件的各个部分?2)这