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

Method dayOfWeekName

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

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

()

Source from the content-addressed store, hash-verified

146 * ```
147 */
148 dayOfWeekName() {
149 const newValues = this.$dateObjectArray.map(date => WEEK_NAME[date.getDay()])
150 return new Series(newValues);
151 }
152
153 /**
154 * Returns the day of the month, in local time

Callers 4

series.test.jsFile · 0.80
datetime.test.jsFile · 0.80
series.test.tsFile · 0.80
datetime.test.tsFile · 0.80

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected