C3 AI Documentation Home

Supported Data Spark Series Datetime Methods APIs

The C3 Agentic AI Platform supports many Pandas APIs to perform dataset operations.

Below is a list of supported Series.dt APIs. Functionality is similar to functionality from Pandas.

API NameLink to Pandas on Spark 3.5.8
datedate
dayday
dayofweekdayofweek
dayofyeardayofyear
days_in_monthdays_in_month
daysinmonthdaysinmonth
hourhour
is_leap_yearis_leap_year
is_month_endis_month_end
is_month_startis_month_start
is_quarter_endis_quarter_end
is_quarter_startis_quarter_start
is_year_endis_year_end
is_year_startis_year_start
microsecondmicrosecond
minuteminute
monthmonth
nanosecondnanosecond
quarterquarter
secondsecond
timetime
timetztimetz
weekweek
weekdayweekday
weekofyearweekofyear
yearyear
ceilceil
day_nameday_name
floorfloor
month_namemonth_name
normalizenormalize
roundround
strftimestrftime
Was this page helpful?