harbor run -t swe-rebench/pypsa__pypsa-1653
harbor download swe-rebench/pypsa__pypsa-1653
NetworkCollection does not allow for groupby=["name",...] in statistics
NetworkCollection
groupby=["name",...]
I have confirmed this bug exists on the lastest release of PyPSA.
I have confirmed this bug exists on the current master branch of PyPSA.
master
NetworkCollection.statistics does not allow to compare based on a component name groupby="name". Network.statistics does allow for this.
NetworkCollection.statistics
groupby="name"
Network.statistics
nc.statistics.opex(groupby=["name"]) # ValueError: 'name' is both an index level and a column label, which is ambiguous.
Grouping by component name.