pypsa.Network.mremove#
- Network.mremove(class_name: str, names: Sequence) None #
Removes multiple components from the network.
n.mremove
is deprecated and will be removed in version 1.0. Use py:meth:pypsa.Network.remove instead. It can handle both single and multiple removal of components.Removes them from component DataFrames.
- Parameters:
class_name (string) – Component class name
name (list-like) – Component names
Examples
>>> n.mremove("Line", ["line x", "line y"])
Deprecated since version 0.31: This will be removed in 1.0. Use n.remove as a drop-in replacement instead.