EXPAND ALL
  • Home

service_name_to_namespace

Extracts the namespace from the service name. It expects the service name to come in the format<namespace>/<service_name>, otherwise it'll return an empty string.

Returns: STRING

The namespace of the service.

Arguments

VariableTypeDescription
service_nameSTRINGThe service to extract the namespace.

Examples:

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