MCPcopy Index your code
hub / github.com/javascriptdata/danfojs / column

Method column

src/danfojs-base/core/frame.ts:2625–2627  ·  view source on GitHub ↗

* Returns the specified column data as a Series object. * @param column The name of the column to return * @example * ``` * const df = new DataFrame([[1, 2], [3, 4]], { columns: ['A', 'B']}) * const sf = df.column('A') * sf.print() * ``` *

(column: string)

Source from the content-addressed store, hash-verified

2623 *
2624 */
2625 column(column: string): Series {
2626 return this.$getColumnData(column) as Series
2627 }
2628
2629 /**
2630 * Return a subset of the DataFrame based on the column dtypes.

Callers

nothing calls this directly

Calls 1

$getColumnDataMethod · 0.95

Tested by

no test coverage detected