danfojs icon indicating copy to clipboard operation
danfojs copied to clipboard

datetime error pass throw new Error("File format not supported!");

Open Zourvan opened this issue 3 years ago • 0 comments

Describe the bug I have date read from mongodb like these: [ { timestamp: 1659052014, DateTime: 2022-07-28T23:46:54.732Z, open: 6751.64577992092, close: 5195.775137545757, high: 1524.0121578845155, low: 6562.21988608587, volume: 1947.899689556545 }, { timestamp: 1659052016, DateTime: 2022-07-28T23:46:56.732Z, open: 1356.56558520725, close: 5338.004939325953, high: 3838.3290561580384, low: 6306.352967310171, volume: 5595.6236089073855 }]

when I try to convert to Json use the toJSON with format : "row" the error throw: throw new Error("File format not supported!"); after remove Datetime from my data the error solved!!! but if format : "column" everything's are OK

Expected behavior throw new Error("File format not supported!");

Desktop (please complete the following information):

  • OS: windows 10
  • node js

Zourvan avatar Aug 05 '22 10:08 Zourvan