We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 499554f commit eb76eb8Copy full SHA for eb76eb8
searvey/coops.py
@@ -732,8 +732,11 @@ def coops_stations(station_status: COOPS_StationStatus | None = None) -> GeoData
732
733
stations.rename(columns={"Removed Date/Time": "removed"}, inplace=True)
734
735
+ # Make sure there's not string None values
736
+ stations.loc[stations["removed"] == "None", "removed"] = pd.NA
737
stations["removed"] = pandas.to_datetime(stations["removed"]).astype("string")
738
739
+ # Stations with NA removed value are filtered
740
stations = (
741
stations[~pandas.isna(stations["removed"])]
742
.sort_values("removed", ascending=False)
0 commit comments