I just started using pandapower today and I can't find a way to delete items. I don't know python at all, I've tried using delete(), remove() and pop() on all kind of different levels but it hasn't done anything. Is it even possible to delete elements?
How do I delete items in PandaPower?
1.6k views Asked by Ale Pan At
2
There are 2 answers
0
On
I found these utility functions to modify the topology, like drop_buses, drop_trafos, drop_lines, etc, which probably don't exist in previous versions.
To drop elements delete the row in the dataframe like this:
net[element].drop(idx_of_element_to_delete, inplace=True)For example to drop bus 5:
net.bus.drop(5, inplace=True)Alternatively you can just set an element out of service so that it is ignored:
net.bus.in_service.at[5] = FalseIf you have questions about pandapower you will probably get faster answers on the github repository than on stackoverflow.