Skip to main content
Version: 1.2.0

tabsdata.tableframe.expr.string

Expr.str
Expr.str.containsEvaluate if the string contains a pattern.
Expr.str.contains_anyEvaluate if the string contains any of the given patterns.
Expr.str.count_matchesCounts the ocurrrences of the given pattern in the string.
Expr.str.ends_withEvaluate if the string ends with.
Expr.str.extractExtract a pattern from the string.
Expr.str.findFind the position of the first occurrence of the given pattern.
Expr.str.headExtract the start of the string up to the given length.
Expr.str.len_bytesReturn number of bytes (not chars) of a string.
Expr.str.len_charsReturn number of chars (not bytes) of a string.
Expr.str.pad_endPad string values at the end to the given length using the given fill character.
Expr.str.pad_startPad string values at the front to the given length using the given fill character.
Expr.str.replaceReplace the first occurence of a pattern with the given string.
Expr.str.replace_allReplace the all occurences of a pattern with the given string.
Expr.str.replace_manyReplace the all occurences of any the given patterns with the given string.
Expr.str.reverseReverse the string.
Expr.str.sliceExtract the substring at the given offset for the given length.
Expr.str.starts_withEvaluate if the string start with.
Expr.str.strip_charsTrim string values.
Expr.str.strip_chars_endTrim string values from the end of the string.
Expr.str.strip_chars_startTrim string values from the start of the string.
Expr.str.strip_prefixTrim string values removing the given prefix
Expr.str.strip_suffixTrim string values removing the given suffix
Expr.str.tailExtract the end of the string up to the given length.
Expr.str.to_dateConvert the string to a date.
Expr.str.to_datetimeConvert the string to a datetime.
Expr.str.to_integerCovert a string to integer.
Expr.str.to_lowercaseReturn the lowercase of a string.
Expr.str.to_timeConvert the string to a time.
Expr.str.to_titlecaseUppercase the first character and lowercase all the others ones of a string.
Expr.str.to_uppercaseReturn the uppercase of a string.
Expr.str.zfillPad numeric string values at the start to the given length using zeros.
pydoc

Expr.str

class ExprStringNameSpace(expr: ExprStringNameSpace)

pydoc

def pydoc(
categories: Literal['aggregation', 'attributes', 'date', 'description', 'logic', 'numeric', 'filters', 'generation', 'join', 'manipulation', 'projection', 'string', 'tableframe', 'type_casting', 'union'] | List[Literal['aggregation', 'attributes', 'date', 'description', 'logic', 'numeric', 'filters', 'generation', 'join', 'manipulation', 'projection', 'string', 'tableframe', 'type_casting', 'union']],
) -> Callable