API#

polars_xdt.date_range([holidays])

Create a range of dates with a given interval and filter out weekends and holidays.

polars_xdt.ewma_by_time(values, *, times, ...)

Calculate time-based exponentially weighted moving average.

polars_xdt.workday_count(start_dates, end_dates)

Count the number of workdays between two columns of dates.

polars_xdt.ceil(expr, every)

Find "ceiling" of datetime.

polars_xdt.day_name(expr[, locale])

Return day name, in specified locale (if specified).

polars_xdt.format_localized(expr, format[, ...])

Convert to local datetime in given time zone.

polars_xdt.from_local_datetime(expr, ...[, ...])

Convert from local datetime in given time zone to new timezone.

polars_xdt.is_workday(expr, *[, weekend, ...])

Determine whether a day is a workday.

polars_xdt.month_name(expr[, locale])

Return month name, in specified locale (if specified).

polars_xdt.month_delta(start_dates, end_dates)

Calculate the number of months between two Series.

polars_xdt.offset_by(expr, by, *[, weekend, ...])

Offset this date by a relative time offset.

polars_xdt.to_local_datetime(expr, time_zone)

Convert to local datetime in given time zone.

polars_xdt.to_julian_date(expr)

Return the Julian date corresponding to given datetimes.