EXPAND ALL
  • Home

trim

Returns a copy of the string with the white space before and after the string trimmed away. Does not affect whitespace in between words.

Returns: STRING

The string but with leading and trailing whitespace removed.

Arguments

VariableTypeDescription
stringSTRINGThe string to transform.

Examples:

df.service = " pl/kelvin "
df.trimmed = px.trim(df.service) # "pl/kelvin"
This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.