From 769acb791b56d2881616e7cd3906b3e158cea8b2 Mon Sep 17 00:00:00 2001 From: haydenanderson <107340527+haydena7@users.noreply.github.com> Date: Fri, 20 Feb 2026 12:55:06 -0600 Subject: [PATCH] docs: update resolution docstrings to reference truncate instead of round --- dataframely/columns/datetime.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dataframely/columns/datetime.py b/dataframely/columns/datetime.py index 9a87ce83..2b8d1465 100644 --- a/dataframely/columns/datetime.py +++ b/dataframely/columns/datetime.py @@ -60,7 +60,7 @@ def __init__( max_exclusive: Like `max` but exclusive. May not be specified if `max` is specified and vice versa. resolution: The resolution that dates in the column must have. This uses the - formatting language used by :mod:`polars` datetime `round` method. + formatting language used by :mod:`polars` datetime `truncate` method. For example, a value `1mo` expects all dates to be on the first of the month. Note that this setting does *not* affect the storage resolution. check: A custom rule or multiple rules to run for this column. This can be: @@ -183,7 +183,7 @@ def __init__( max_exclusive: Like `max` but exclusive. May not be specified if `max` is specified and vice versa. resolution: The resolution that times in the column must have. This uses the - formatting language used by :mod:`polars` datetime `round` method. + formatting language used by :mod:`polars` datetime `truncate` method. For example, a value `1h` expects all times to be full hours. Note that this setting does *not* affect the storage resolution. check: A custom rule or multiple rules to run for this column. This can be: @@ -314,7 +314,7 @@ def __init__( max_exclusive: Like `max` but exclusive. May not be specified if `max` is specified and vice versa. resolution: The resolution that datetimes in the column must have. This uses - the formatting language used by :mod:`polars` datetime `round` method. + the formatting language used by :mod:`polars` datetime `truncate` method. For example, a value `1h` expects all datetimes to be full hours. Note that this setting does *not* affect the storage resolution. time_zone: The time zone that datetimes in the column must have. The time @@ -459,7 +459,7 @@ def __init__( max_exclusive: Like `max` but exclusive. May not be specified if `max` is specified and vice versa. resolution: The resolution that durations in the column must have. This uses - the formatting language used by :mod:`polars` datetime `round` method. + the formatting language used by :mod:`polars` datetime `truncate` method. For example, a value `1h` expects all durations to be full hours. Note that this setting does *not* affect the storage resolution. check: A custom rule or multiple rules to run for this column. This can be: