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

Method dayOfWeek

src/danfojs-base/core/datetime.ts:83–86  ·  view source on GitHub ↗

* Returns the day of the week, in local time * @example * ``` * import { Series } from "danfojs-node" * const data = [ * "2019-01-01", * "2019-02-01", * "2019-03-01", * "2019-04-01", * ] * const df = new Series(data) * const dayOfWeek = df.dt.da

()

Source from the content-addressed store, hash-verified

81 * ```
82 */
83 dayOfWeek() {
84 const newValues = this.$dateObjectArray.map(date => date.getDay())
85 return new Series(newValues);
86 }
87
88 /**
89 * Returns the year, in local time

Callers

nothing calls this directly

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected