string#

class jsonpolars.expr.string.String(type: str = 'string', expr: T_EXPR = Sentinel('REQUIRED'))[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/string.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.Split(type: str = 'str_split', expr: T_EXPR = Sentinel('REQUIRED'), by: str = Sentinel('REQUIRED'), inclusive: bool = False)[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.split.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrJoin(type: str = 'str_join', expr: T_EXPR = Sentinel('REQUIRED'), delimiter: str = '', ignore_nulls: bool = True)[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.join.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrContains(type: str = 'str_contains', expr: T_EXPR = Sentinel('REQUIRED'), pattern: Union[str, T_EXPR] = Sentinel('REQUIRED'), literal: bool = False, strict: bool = True)[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.contains.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrDecode(type: str = 'str_decode', expr: T_EXPR = Sentinel('REQUIRED'), encoding: str = Sentinel('REQUIRED'), strict: bool = True)[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.decode.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrEncode(type: str = 'str_encode', expr: T_EXPR = Sentinel('REQUIRED'), encoding: str = Sentinel('REQUIRED'))[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.encode.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrStartsWith(type: str = 'str_starts_with', expr: T_EXPR = Sentinel('REQUIRED'), prefix: Union[str, T_EXPR] = Sentinel('REQUIRED'))[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.starts_with.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrEndsWith(type: str = 'str_ends_with', expr: T_EXPR = Sentinel('REQUIRED'), suffix: Union[str, T_EXPR] = Sentinel('REQUIRED'))[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.ends_with.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrToDatetime(type: str = 'str_to_datetime', expr: T_EXPR = Sentinel('REQUIRED'), format: Optional[str] = None, time_unit: Optional[str] = None, time_zone: Optional[str] = None, strict: bool = True, exact: bool = True, cache: bool = True, ambiguous: str = 'raise')[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.to_datetime.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrToDate(type: str = 'str_to_date', expr: T_EXPR = Sentinel('REQUIRED'), format: Optional[str] = None, strict: bool = True, exact: bool = True, cache: bool = True)[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.to_date.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrZfill(type: str = 'str_zfill', expr: T_EXPR = Sentinel('REQUIRED'), length: int = Sentinel('REQUIRED'))[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.zfill.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrPadStart(type: str = 'str_pad_start', expr: T_EXPR = Sentinel('REQUIRED'), length: int = Sentinel('REQUIRED'), fill_char: str = ' ')[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.pad_start.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrPadEnd(type: str = 'str_pad_end', expr: T_EXPR = Sentinel('REQUIRED'), length: int = Sentinel('REQUIRED'), fill_char: str = ' ')[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.pad_end.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrToLowerCase(type: str = 'str_to_lowercase', expr: T_EXPR = Sentinel('REQUIRED'))[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.to_lowercase.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrToUpperCase(type: str = 'str_to_uppercase', expr: T_EXPR = Sentinel('REQUIRED'))[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.to_uppercase.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrToTitleCase(type: str = 'str_to_titlecase', expr: T_EXPR = Sentinel('REQUIRED'))[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.to_titlecase.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrHead(type: str = 'str_head', expr: T_EXPR = Sentinel('REQUIRED'), n: int = Sentinel('REQUIRED'))[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.head.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrTail(type: str = 'str_tail', expr: T_EXPR = Sentinel('REQUIRED'), n: int = Sentinel('REQUIRED'))[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.tail.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrSlice(type: str = 'str_slice', expr: T_EXPR = Sentinel('REQUIRED'), offset: int = Sentinel('REQUIRED'), length: int = Sentinel('REQUIRED'))[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.slice.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrReplace(type: str = 'str_replace', expr: T_EXPR = Sentinel('REQUIRED'), pattern: Union[str, T_EXPR] = Sentinel('REQUIRED'), value: Union[str, T_EXPR] = Sentinel('REQUIRED'), literal: bool = False, n: int = 1)[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.replace.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.

class jsonpolars.expr.string.StrReplaceAll(type: str = 'str_replace_all', expr: T_EXPR = Sentinel('REQUIRED'), pattern: Union[str, T_EXPR] = Sentinel('REQUIRED'), value: Union[str, T_EXPR] = Sentinel('REQUIRED'), literal: bool = False)[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.str.replace_all.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Construct an instance from dataclass-like data. It could be a dictionary, an instance of this class, or None.