Skip to content

Commit 255f342

Browse files
authored
Using utf8 explicitly
1 parent 56788c9 commit 255f342

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go-choropleth-mapbox.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import numpy as np
44
import json
55

6-
with open("china_province.geojson") as f:
6+
with open("china_province.geojson", encoding='utf8') as f:
77
provinces_map = json.load(f)
88

99
df = pd.read_csv('data.csv')
@@ -34,4 +34,4 @@
3434
mapbox_zoom=3,
3535
mapbox_center={"lat": 37.110573, "lon": 106.493924},
3636
)
37-
fig.show()
37+
fig.show()

0 commit comments

Comments
 (0)