ValueError: DataFrame index must be unique for Orient =’columns’

pandas.pydata.org/pandas-docs…

Ret.to_json (Orient =”split”)

The jSO format is as follows: The column index and data are divided into three dict types. The corresponding value is a list, where data is two-dimensional

{
  "columns": [
    "2021-03-31"."2020-12-31"."2015-03-31"."2021-06-30"]."index": [
    "Net profit margin on total assets"."Cash cycle"."Current asset turnover"."Total asset turnover". ] ."data": [[0.0096652355,
      -0.8293684813,
      -5.4261097763.0.1362314567.0.0055063438.0.0435877893,
      -0.299344604. ] [509.4200002625.576.980000113.1809.5799991314.956.8100006403.683.0100002288.651.5400001291. ] ]Copy the code

Dataframe data is as follows