danfo.toDateTime
Converts an array of Date strings to Date object.
danfo.toDateTime(data)
Parameters
Type
Description
Default
data
Array, Series
data: Array
Series with Date strings to convert to Date time.
Examples
In the following example, we convert a Series of Date strings to DateTime objects, so we can call various Date methods on them.
Date time properties of Series or datetime-like columns in DataFrame can be accessed via accessors in the dt name-space. See Accessors
Last updated
Was this helpful?