Skip to content

Commit 82dbbba

Browse files
Merge pull request #145 from PyPSA/revert-future-warning
Revert "deprecation: FutureWarning: The behavior of array concatenati…
2 parents 48949d8 + 97c9d20 commit 82dbbba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

powerplantmatching/export.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ def map_bus(df, buses):
7373
"""
7474
df = get_obj_if_Acc(df)
7575
kdtree = KDTree(buses[["x", "y"]])
76-
non_empty_buses = buses.dropna().index
77-
buses_i = non_empty_buses.append(pd.Index([np.nan]))
76+
buses_i = buses.index.append(pd.Index([np.nan]))
7877
return df.assign(bus=buses_i[kdtree.query(df[["lon", "lat"]].values)[1]])
7978

8079

0 commit comments

Comments
 (0)