@@ -46,6 +46,7 @@ def __init__(
4646 check : Check | None = None ,
4747 alias : str | None = None ,
4848 metadata : dict [str , Any ] | None = None ,
49+ description : str | None = None ,
4950 ):
5051 """
5152 Args:
@@ -88,6 +89,7 @@ def __init__(
8889 this option does _not_ allow to refer to the column with two different
8990 names, the specified alias is the only valid name.
9091 metadata: A dictionary of metadata to attach to the column.
92+ description: A human-readable description of the column.
9193 """
9294 if resolution is not None :
9395 offset_time = pl .Series ([EPOCH_DATETIME ]).dt .offset_by (resolution ).dt .time ()
@@ -117,6 +119,7 @@ def __init__(
117119 check = check ,
118120 alias = alias ,
119121 metadata = metadata ,
122+ description = description ,
120123 )
121124 self .resolution = resolution
122125
@@ -188,6 +191,7 @@ def __init__(
188191 check : Check | None = None ,
189192 alias : str | None = None ,
190193 metadata : dict [str , Any ] | None = None ,
194+ description : str | None = None ,
191195 ):
192196 """
193197 Args:
@@ -230,6 +234,7 @@ def __init__(
230234 this option does _not_ allow to refer to the column with two different
231235 names, the specified alias is the only valid name.
232236 metadata: A dictionary of metadata to attach to the column.
237+ description: A human-readable description of the column.
233238 """
234239 if resolution is not None :
235240 offset_date = pl .Series ([EPOCH_DATETIME ]).dt .offset_by (resolution ).dt .date ()
@@ -259,6 +264,7 @@ def __init__(
259264 check = check ,
260265 alias = alias ,
261266 metadata = metadata ,
267+ description = description ,
262268 )
263269 self .resolution = resolution
264270
@@ -338,6 +344,7 @@ def __init__(
338344 check : Check | None = None ,
339345 alias : str | None = None ,
340346 metadata : dict [str , Any ] | None = None ,
347+ description : str | None = None ,
341348 ):
342349 """
343350 Args:
@@ -384,6 +391,7 @@ def __init__(
384391 this option does _not_ allow to refer to the column with two different
385392 names, the specified alias is the only valid name.
386393 metadata: A dictionary of metadata to attach to the column.
394+ description: A human-readable description of the column.
387395 """
388396 if resolution is not None and min is not None :
389397 if not datetime_matches_resolution (min , resolution ):
@@ -409,6 +417,7 @@ def __init__(
409417 check = check ,
410418 alias = alias ,
411419 metadata = metadata ,
420+ description = description ,
412421 )
413422 self .resolution = resolution
414423 self .time_zone = time_zone
@@ -509,6 +518,7 @@ def __init__(
509518 check : Check | None = None ,
510519 alias : str | None = None ,
511520 metadata : dict [str , Any ] | None = None ,
521+ description : str | None = None ,
512522 ):
513523 """
514524 Args:
@@ -552,6 +562,7 @@ def __init__(
552562 this option does _not_ allow to refer to the column with two different
553563 names, the specified alias is the only valid name.
554564 metadata: A dictionary of metadata to attach to the column.
565+ description: A human-readable description of the column.
555566 """
556567 if resolution is not None and min is not None :
557568 if not timedelta_matches_resolution (min , resolution ):
@@ -577,6 +588,7 @@ def __init__(
577588 check = check ,
578589 alias = alias ,
579590 metadata = metadata ,
591+ description = description ,
580592 )
581593 self .resolution = resolution
582594 self .time_unit = time_unit
0 commit comments