From 338a95595dcc84548bd4a4924bbb0b7aa4688d3c Mon Sep 17 00:00:00 2001 From: Panos Mavrogiorgos Date: Wed, 13 Dec 2023 19:52:12 +0200 Subject: [PATCH] coops: Remove pandas FutureWarning for concatenating all NaN columns https://github.com/pandas-dev/pandas/blob/a0babcb2c63dd721ea47e75f6229c5fe727b2395/pandas/core/internals/concat.py#L491-L499 --- searvey/coops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searvey/coops.py b/searvey/coops.py index 94fd107..c788617 100644 --- a/searvey/coops.py +++ b/searvey/coops.py @@ -775,7 +775,7 @@ def coops_stations(station_status: StationStatus | None = None) -> GeoDataFrame: stations = pandas.concat( ( - active_stations[~active_stations.index.isin(discontinued_stations.index)], + active_stations[~active_stations.index.isin(discontinued_stations.index)].drop(columns="removed"), # fmt: skip discontinued_stations, ) )