String¶
ascii ¶
Returns the ASCII code of the first character of col.
Wrapper for pyspark.sql.functions.ascii.
bin ¶
bin(col: Numeric) -> String
Returns the binary representation of col as a string.
Wrapper for pyspark.sql.functions.bin.
btrim ¶
Removes leading and trailing characters from col. Removes whitespace when trim is omitted.
Wrapper for pyspark.sql.functions.btrim.
char ¶
Returns the character for the given ASCII code point col.
Wrapper for pyspark.sql.functions.char.
char_length ¶
Returns the number of characters in col.
Wrapper for pyspark.sql.functions.char_length.
concat ¶
Concatenates multiple string or array columns.
Wrapper for pyspark.sql.functions.concat.
concat_ws ¶
Concatenates string columns using sep as separator, skipping nulls.
Wrapper for pyspark.sql.functions.concat_ws.
contains ¶
Returns true if left contains right.
Wrapper for pyspark.sql.functions.contains.
decode ¶
Decodes a binary column col to a string using the given charset.
Wrapper for pyspark.sql.functions.decode.
encode ¶
Encodes string column col to binary using the given charset.
Wrapper for pyspark.sql.functions.encode.
endswith ¶
Returns true if col ends with suffix.
Wrapper for pyspark.sql.functions.endswith.
find_in_set ¶
Returns the 1-based position of col in the comma-separated list str, or 0 if not found.
Wrapper for pyspark.sql.functions.find_in_set.
format_number ¶
Formats col as a number with d decimal places using US locale grouping (e.g. 1,234.56).
Wrapper for pyspark.sql.functions.format_number.
format_string ¶
Returns a formatted string using printf-style format and the given columns.
Wrapper for pyspark.sql.functions.format_string.
hex ¶
Returns the hexadecimal string representation of col.
Wrapper for pyspark.sql.functions.hex.
initcap ¶
Returns col with the first letter of each word capitalised.
Wrapper for pyspark.sql.functions.initcap.
instr ¶
Returns the 1-based position of the first occurrence of substr in col, or 0 if not found.
Wrapper for pyspark.sql.functions.instr.
left ¶
Returns the leftmost len characters of col.
Wrapper for pyspark.sql.functions.left.
length ¶
Returns the character length of a string, or the byte length of a binary column.
Wrapper for pyspark.sql.functions.length.
levenshtein ¶
Returns the Levenshtein distance between col1 and col2. Returns -1 if the distance exceeds threshold.
Wrapper for pyspark.sql.functions.levenshtein.
locate ¶
Returns the 1-based position of the first occurrence of substr in col at or after pos.
Wrapper for pyspark.sql.functions.locate.
lower ¶
Returns col converted to lowercase.
Wrapper for pyspark.sql.functions.lower.
lpad ¶
Left-pads col with pad to a total length of len characters.
Wrapper for pyspark.sql.functions.lpad.
ltrim ¶
Removes leading characters from col. Removes whitespace when trim is omitted.
Wrapper for pyspark.sql.functions.ltrim.
octet_length ¶
Returns the byte length of col.
Wrapper for pyspark.sql.functions.octet_length.
overlay ¶
Replaces a substring of col starting at pos with replace. Replaces len characters when provided.
Wrapper for pyspark.sql.functions.overlay.
regexp_extract ¶
Extracts the idx-th regex group matched by pattern from string.
Wrapper for pyspark.sql.functions.regexp_extract.
regexp_extract_all ¶
regexp_extract_all(
string: String,
pattern: str | String,
idx: int | None = None,
) -> Array[String]
Extracts all substrings of string matching the regex group at idx.
Wrapper for pyspark.sql.functions.regexp_extract_all.
regexp_replace ¶
Replaces all substrings of string matching pattern with replacement.
Wrapper for pyspark.sql.functions.regexp_replace.
repeat ¶
Returns col repeated n times.
Wrapper for pyspark.sql.functions.repeat.
replace ¶
Replaces all occurrences of search in src with replace. Removes matches when replace is omitted.
Wrapper for pyspark.sql.functions.replace.
reverse ¶
Reverses the characters of a string column, or the elements of an array column.
Wrapper for pyspark.sql.functions.reverse.
right ¶
Returns the rightmost len characters of col.
Wrapper for pyspark.sql.functions.right.
rpad ¶
Right-pads col with pad to a total length of len characters.
Wrapper for pyspark.sql.functions.rpad.
rtrim ¶
Removes trailing characters from col. Removes whitespace when trim is omitted.
Wrapper for pyspark.sql.functions.rtrim.
sha1 ¶
Returns the SHA-1 hex digest of col.
Wrapper for pyspark.sql.functions.sha1.
sha2 ¶
Returns the SHA-2 hex digest of col using numBits-bit hash (224, 256, 384, or 512).
Wrapper for pyspark.sql.functions.sha2.
soundex ¶
Returns the Soundex phonetic code for col.
Wrapper for pyspark.sql.functions.soundex.
split ¶
Splits col around occurrences of pattern (regex), returning an array of strings.
Wrapper for pyspark.sql.functions.split.
split_part ¶
Splits src by delimiter and returns the partNum-th part (1-based).
Wrapper for pyspark.sql.functions.split_part.
startswith ¶
Returns true if str starts with prefix.
Wrapper for pyspark.sql.functions.startswith.
substr ¶
Returns the substring of col from startPos (1-based).
Includes all remaining characters when length is omitted.
Wrapper for pyspark.sql.functions.substr.
substring ¶
Returns the substring of str starting at pos (1-based) with at most len characters.
Wrapper for pyspark.sql.functions.substring.
substring_index ¶
Returns everything to the left of the count-th occurrence of delim in col.
Negative count counts from the right.
Wrapper for pyspark.sql.functions.substring_index.
translate ¶
Translates characters in col by replacing each character in matchingString with
the corresponding character in replaceString.
Wrapper for pyspark.sql.functions.translate.
trim ¶
Removes leading and trailing whitespace from col, or the characters in trim when provided.
Wrapper for pyspark.sql.functions.trim.
unhex ¶
Decodes a hexadecimal string col into binary.
Wrapper for pyspark.sql.functions.unhex.
upper ¶
Returns col converted to uppercase.
Wrapper for pyspark.sql.functions.upper.
url_decode ¶
Decodes a URL-encoded string column col.
Wrapper for pyspark.sql.functions.url_decode.
url_encode ¶
URL-encodes string column col using application/x-www-form-urlencoded format.
Wrapper for pyspark.sql.functions.url_encode.
unbase64 ¶
Decodes a Base64-encoded string column col into binary.
Wrapper for pyspark.sql.functions.unbase64.