title_color="#fff", title_pos="center", width="100%", height=720, background_color="#404a59") china_geo_house_price.add("", city_list, prices, visual_range=[price_min, price_max], visual_text_color="#fff", symbol_size=15, is_visualmap=True, is_label_show=True, is_more_utils=True, label_formatter="{b}") china_geo_house_price.on(events.MOUSE_CLICK, on_click) path = "html/index.html" china_geo_house_price.render(path) print("save to ", path) # 各城市房价 xiaoqu_city_path = "{0}/{1}/xiaoqu".format(DATA_PATH, SPIDER_NAME) for ct in cities: try: # ct = 'wh' # 注意,已经将分割符号转换成分号,因为有的小区名中有逗号 df = pd.read_csv(xiaoqu_city_path + "/{0}.csv".format(ct), encoding="utf-8", sep=";") dist = [ i + "区" if not i.endswith("区") else i