我今天才开始使用pandapower,我找不到删除项目的方法。我对python一无所知,我尝试过在各种不同的层次上使用delete()、remove()和pop(),但它什么也没做。有没有可能删除元素?
发布于 2019-07-09 19:20:47
要删除元素,请删除数据帧中的行,如下所示:
net[element].drop(idx_of_element_to_delete, inplace=True)
例如,要删除总线5:
net.bus.drop(5, inplace=True)
或者,您可以只将一个元素设置为非服务元素,以便忽略它:
net.bus.in_service.at[5] = False
如果你有关于pandapower的问题,你可能会在github存储库上比在stackoverflow上得到更快的答案。
发布于 2021-01-13 21:18:06
我找到了这些utility functions to modify the topology,比如drop_buses、drop_trafos、drop_lines等,它们在以前的版本中可能是不存在的。
https://stackoverflow.com/questions/55299203
复制相似问题