Skip to content

Commit 5069c3a

Browse files
authored
Using utf8 explicitly
1 parent 255f342 commit 5069c3a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

px-choropleth-mapbox.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import pandas as pd
2-
# import geopandas
32
import plotly.express as px
43
import numpy as np
54
import json
65

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

109
df = pd.read_csv('data.csv')
@@ -35,4 +34,4 @@
3534
# hover_data=["确诊", "疑似", "治愈", "死亡"],
3635
)
3736
# fig.update_layout(margin={"r": 0, "t": 0, "l": 0, "b": 0})
38-
fig.show()
37+
fig.show()

0 commit comments

Comments
 (0)