将 Json 文件转换为 Excel [英] Convert Json file to excel
本文介绍了将 Json 文件转换为 Excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将一个大的 json 文件转换为 Excel 表格.
How can I convert a big json file to excel sheet.
https://json-csv.com/ 网站允许但不免费,如果大小超过 1MB.
https://json-csv.com/ website is allow to do but not free if size exceeded 1MB.
是否有任何可用的开源选项.
Is there any open source option available.
推荐答案
您可以使用 Python 和库 Pandas
对其进行转换.首先,您必须将 JSON
导入到 DataFrame(使用 pandas.read_json)然后导出将 DataFrame 转换为 .xlsx
(使用 pandas.ExcelWriter ).
You can convert it using Python and the library Pandas
. First you have to import the JSON
to a DataFrame (using pandas.read_json) and then export the DataFrame to a .xlsx
(using pandas.ExcelWriter ).
这篇关于将 Json 文件转换为 Excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文