From 68c109f149f293caf215079fbc2291a51282c2ab Mon Sep 17 00:00:00 2001 From: srdm Date: Sat, 12 Oct 2024 13:14:30 +0200 Subject: [PATCH] changes in pandas --- src/pandapipes/plotting/generic_geodata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pandapipes/plotting/generic_geodata.py b/src/pandapipes/plotting/generic_geodata.py index 51bc2cd2..9547d09d 100644 --- a/src/pandapipes/plotting/generic_geodata.py +++ b/src/pandapipes/plotting/generic_geodata.py @@ -104,7 +104,7 @@ def create_generic_coordinates(net, mg=None, library="igraph", geodata_table="ju raise ValueError("Unknown library %s - chose 'igraph' or 'networkx'" % library) if len(coords): - net[geodata_table].x = coords[1] - net[geodata_table].y = coords[0] + net[geodata_table].loc[:, 'x'] = coords[1] + net[geodata_table].loc[:, 'y'] = coords[0] net[geodata_table].index = net.junction.index if junctions is None else junctions return net