Skip to content

Commit

Permalink
Avoid deprecation warning when initializing the busmap
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraBuettner committed Aug 15, 2024
1 parent 85ac40c commit bfb932d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etrago/cluster/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ def kmedoids_dijkstra_clustering(
kmeans.fit(points)

busmap = pd.Series(
data=kmeans.predict(buses.loc[buses_i, ["x", "y"]]),
data=kmeans.predict(buses.loc[buses_i, ["x", "y"]].values),
index=buses_i,
dtype=object,
)
Expand Down

0 comments on commit bfb932d

Please sign in to comment.