Skip to content

Commit 97c9d20

Browse files
committed
Revert "deprecation: FutureWarning: The behavior of array concatenation with empty entries is deprecated."
This reverts commit 45b7915.
1 parent 48949d8 commit 97c9d20

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)