Skip to content

Commit 0796225

Browse files
committed
add better documentation of time_zone argument
1 parent 58e510d commit 0796225

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dataframely/columns/datetime.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ def __init__(
293293
the formatting language used by :mod:`polars` datetime ``round`` method.
294294
For example, a value ``1h`` expects all datetimes to be full hours. Note
295295
that this setting does *not* affect the storage resolution.
296-
time_zone: The timezone that datetimes in the column must have.
296+
time_zone: The time zone that datetimes in the column must have. The time
297+
zone must use a valid IANA time zone name identifier e.x. ``Etc/UTC`` or
298+
``America/New_York``.
297299
check: A custom check to run for this column. Must return a non-aggregated
298300
boolean expression.
299301
alias: An overwrite for this column's name which allows for using a column

dataframely/random.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,9 @@ def sample_datetime(
305305
max: The maximum datetime to sample (exclusive). '10000-01-01' when ``None``.
306306
resolution: The resolution that datetimes in the column must have. This uses
307307
the formatting language used by :mod:`polars` datetime ``round`` method.
308-
time_zone: The timezone that datetimes in the column must have.
308+
time_zone: The time zone that datetimes in the column must have. The time
309+
zone must use a valid IANA time zone name identifier e.x. ``Etc/UTC`` or
310+
``America/New_York``.
309311
null_probability: The probability of an element being ``null``.
310312
311313
Returns:

0 commit comments

Comments
 (0)