Powered By GitBook
Series.dt.monthday
Obtain the day of the month
danfo.Series.dt.monthday() [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":"2000-01-01", period:4, freq:"D"})
4
let sf = new dfd.Series(data)
5
//print series
6
sf.print()
7
//print monthdays
8
sf.dt.monthday().print()
Copied!
1
Copied!
Output
1
╔═══╤══════════════════════╗
2
║ 0 │ 1/1/2000, 1:00:00 AM ║
3
╟───┼──────────────────────╢
4
║ 1 │ 1/2/2000, 1:00:00 AM ║
5
╟───┼──────────────────────╢
6
║ 2 │ 1/3/2000, 1:00:00 AM ║
7
╚═══╧══════════════════════╝
8
9
╔═══╤═══╗
10
║ 0 │ 1 ║
11
╟───┼───╢
12
║ 1 │ 2 ║
13
╟───┼───╢
14
║ 2 │ 3 ║
15
╚═══╧═══╝
Copied!
Last modified 13d ago
Copy link