EXPAND ALL
- Home
- About Pixie
- Installing Pixie
- Using Pixie
- Tutorials
- Reference
Returns the string with the prefix removed. Will return the same string if the prefix not found.
`string` with `prefix` removed from the beginning if it existed.
Variable | Type | Description |
---|---|---|
prefix | STRING | The prefix to remove. |
string | STRING | The string value to strip the prefix from. |
# df.service is `pl/kelvin`df.removed_pl = px.strip_prefix('pl/', df.service) # "kelvin"