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

Method ndim

src/danfojs-base/core/generic.ts:230–236  ·  view source on GitHub ↗

* Returns the dimension of the data. Series have a dimension of 1, * while DataFrames have a dimension of 2.

()

Source from the content-addressed store, hash-verified

228 * while DataFrames have a dimension of 2.
229 */
230 get ndim(): number {
231 if (this.$isSeries) {
232 return 1;
233 } else {
234 return 2
235 }
236 }
237
238 /**
239 * Returns the axis labels of the NDFrame.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected