Skip to content

Commit

Permalink
Fix FutureWarning about literal json (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
randyzwitch authored Oct 9, 2024
1 parent bf043b5 commit c825b14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/pages/geojson_popup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import io

import branca
import folium
import geopandas
Expand Down Expand Up @@ -32,7 +34,7 @@ def get_df() -> pd.DataFrame:
"https://gist.githubusercontent.com/tvpmb/4734703/raw/"
"b54d03154c339ed3047c66fefcece4727dfc931a/US%2520State%2520List"
)
abbrs = pd.read_json(response.text)
abbrs = pd.read_json(io.StringIO(response.text))

statesmerge = states.merge(abbrs, how="left", left_on="name", right_on="name")
statesmerge["geometry"] = statesmerge.geometry.simplify(0.05)
Expand Down

0 comments on commit c825b14

Please sign in to comment.