Check if DataType is a string
Parameters:
Name |
Type |
Description |
Default |
t
|
DataType
|
|
required
|
Returns:
Type |
Description |
bool
|
True if DataType is a string
|
Source code in pixano/core/utils.py
| def is_string(t: pa.DataType) -> bool:
"""Check if DataType is a string
Args:
t (pa.DataType): DataType to check
Returns:
bool: True if DataType is a string
"""
return pa.types.is_string(t) or pa.types.is_large_string(t)
|