Powered By GitBook
Series.dt.day
Obtain the numerical representation of the week day.
danfo.Series.dt.day() [source]
Parameters: None
Returns: Series (int elements)
Examples
Node
Browser
1
const dfd = require("danfojs-node")
2
3
let data = new dfd.date_range({"start":'2016-12-31', "end":'2018-01-08'})
4
let sf = new dfd.Series(data)
5
6
sf.dt.day().print()
Copied!
1
Copied!
1
╔═══╤═══╗
2
║ 0 │ 6 ║
3
╟───┼───╢
4
║ 1 │ 0 ║
5
╟───┼───╢
6
║ 2 │ 1 ║
7
╟───┼───╢
8
║ 3 │ 2 ║
9
╟───┼───╢
10
║ 4 │ 3 ║
11
╟───┼───╢
12
║ 5 │ 4 ║
13
╟───┼───╢
14
║ 6 │ 5 ║
15
╟───┼───╢
16
║ 7 │ 6 ║
17
╟───┼───╢
18
║ 8 │ 0 ║
19
╟───┼───╢
20
║ 9 │ 1 ║
21
╚═══╧═══╝
Copied!
Last modified 24d ago
Copy link