MCPcopy Create free account
hub / github.com/javascriptdata/danfojs / constructor

Method constructor

src/danfojs-base/core/datetime.ts:28–34  ·  view source on GitHub ↗
(data: Series | ArrayType1D)

Source from the content-addressed store, hash-verified

26 private $dateObjectArray: Array<Date>
27
28 constructor(data: Series | ArrayType1D) {
29 if (data instanceof Series) {
30 this.$dateObjectArray = this.processData(data.values as ArrayType1D)
31 } else {
32 this.$dateObjectArray = this.processData(data)
33 }
34 }
35
36 /**
37 * Processed the data values into internal structure for easy access

Callers

nothing calls this directly

Calls 1

processDataMethod · 0.95

Tested by

no test coverage detected