* 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
()
| 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 |