pandas.to_json utf-8值而不是中文

#将dataframe转化成json文件时候,head文件发现文件不是中文

解决方案:

all_insurance.to_json("scrapy_insurance_kc.json", orient="records", lines=True, force_ascii=False) 

猜你喜欢

转载自www.cnblogs.com/Tw1st-Fate/p/11328106.html
今日推荐