EXPAND ALL
  • Home

redact_pii_best_effort

Replace instances of PII with '<REDACTED_$TYPE>' eg. '<REDACTED_EMAIL>' or '<REDACTED_IPv4>'. Currently, it will (on a best effort basis) redact IP addresses, email addresses, MAC addresses, IMEI numbers, credit card numbers, and IBAN numbers. However, the redaction is not perfect, so it should not be used in a context where privacy needs to be guaranteed.

Returns: STRING

The input string with instances of PII replaced with <REDACTED>.

Arguments

VariableTypeDescription
input_strSTRINGThe string to redact PII from.

Examples:

df.redacted = px.redact_pii_best_effort(df.req_body)
This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.