Dates¶
-
Clean.
date
(col: str, **kwargs)¶ Convert a column to date type
Parameters: - col (str) – column name
- **kwargs (optional) – keyword arguments for
pd.to_datetime
Example: ds.date("mycol")
-
Clean.
fdate
(*cols, precision: str = 'S', format: str = None)¶ Convert column values to formated date string
Parameters: - *cols (str, at least one) – names of the colums
- precision (str, optional) – time precision: Y, M, D, H, Min S, defaults to “S”
- format (str, optional) – python date format, defaults to None
Example: ds.fdate("mycol1", "mycol2", precision)
-
Clean.
timestamps
(col: str, **kwargs)¶ ” Add a timestamps column from a date column
Parameters: - col (str) – name of the timestamps column to add
- **kwargs (optional) – keyword arguments for
pd.to_datetime
Example: ds.timestamps("mycol")