How to convert JSON to XLS in Python

前端 未结 4 1195
梦毁少年i
梦毁少年i 2020-12-29 08:03

Does anyone know how can I convert JSON to XLS in Python?

I know that it is possible to create xls files using the package xlwt

4条回答
  •  天涯浪人
    2020-12-29 08:15

    Using pandas (0.15.1) and openpyxl (1.8.6):

    import pandas
    pandas.read_json("input.json").to_excel("output.xlsx")
    

提交回复
热议问题