cudf.core.column.string.StringMethods.istimestamp#
- StringMethods.istimestamp(format: str) SeriesOrIndex #
Check whether all characters in each string can be converted to a timestamp using the given format.
- Returns
- Series or Index of bool
Series or Index of boolean values with the same length as the original Series/Index.
Examples
>>> import cudf >>> s = cudf.Series(["20201101", "192011", "18200111", "2120-11-01"]) >>> s.str.istimestamp("%Y%m%d") 0 True 1 False 2 True 3 False dtype: bool