Skip to content

Latest commit

 

History

History
55 lines (45 loc) · 1.27 KB

series.dt.monthday.md

File metadata and controls

55 lines (45 loc) · 1.27 KB
description
Obtain the day of the month

Series.dt.dayOfMonth

danfo.Series.dt.dayOfMonth() [source]

Parameters: None

Returns: Series (Int elements)

Examples

{% tabs %} {% tab title="Node" %}

const dfd = require("danfojs-node")

let data = new dfd.dateRange({"start":"2000-01-01", period:4, freq:"D"})
let sf = new dfd.Series(data)
//print series
sf.print()
//print monthdays
sf.dt.dayOfMonth().print()

{% endtab %}

{% tab title="Browser" %}

{% endtab %} {% endtabs %}

{% tabs %} {% tab title="Output" %}

╔═══╤══════════════════════╗
║ 0 │ 1/1/2000, 1:00:00 AM ║
╟───┼──────────────────────╢
║ 1 │ 1/2/2000, 1:00:00 AM ║
╟───┼──────────────────────╢
║ 2 │ 1/3/2000, 1:00:00 AM ║
╚═══╧══════════════════════╝

╔═══╤═══╗
║ 0 │ 1 ║
╟───┼───╢
║ 1 │ 2 ║
╟───┼───╢
║ 2 │ 3 ║
╚═══╧═══╝

{% endtab %} {% endtabs %}