Skip to content

Commit

Permalink
Avoid warning from GeoDataFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
dgilmanAIDENTIFIED committed Aug 24, 2023
1 parent 902f982 commit b53c9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion us/tests/test_timezones.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_timezone():
timezone_df = gpd.GeoDataFrame().from_records(
timezones(), columns=["timezone", "lat", "lng"], coerce_float=True
)
timezone_df.geometry = gpd.points_from_xy(timezone_df.lng, timezone_df.lat)
timezone_df = timezone_df.set_geometry(gpd.points_from_xy(timezone_df.lng, timezone_df.lat))
timezone_df: gpd.GeoDataFrame = timezone_df.drop(columns=["lat", "lng"])
timezone_df = timezone_df.set_crs(crs="EPSG:4326") # probably?
timezone_df = timezone_df.to_crs(state_df.crs)
Expand Down

0 comments on commit b53c9e7

Please sign in to comment.