* Returns the hour of the day, in local time * @example * ``` * import { Series } from "danfojs-node" * const data = [ * "2019-01-01", * "2019-02-05", * "2021-03-02", * "2020-04-01", * ] * const df = new Series(data) * const hour = df.dt.hour().
()
| 190 | * ``` |
| 191 | */ |
| 192 | hours() { |
| 193 | const newValues = this.$dateObjectArray.map(date => date.getHours()) |
| 194 | return new Series(newValues); |
| 195 | } |
| 196 | |
| 197 | /** |
| 198 | * Returns the second of the day, in local time |