Skip to content

Commit

Permalink
changes in pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonRubenDrauz committed Oct 12, 2024
1 parent 628105d commit 68c109f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pandapipes/plotting/generic_geodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 68c109f

Please sign in to comment.