Using Infer to Anonymize
Use the Infer API to start auto-detecting the data-domain, classification type, hierarchies, and anonymization configuration in Protegrity Anonymization.
Any user-defined configuration, such as, QI attribute assignments, hierarchy, and K value, are retained and considered while performing the auto anonymization.
Ensure that you complete the following checks before starting the Protegrity Anonymization job:
- Verify that the destination file is not in use and that the required permissions are set for creating and modifying the destination file.
- Ensure that the disk is not full and enough free space is available to save the destination file.
- Verify that you have imported the Pythonic SDK, for example, import anonsdk as asdk.
The folowing table shows the auto anonymization information.
| Using Infer to Anonymize Information | Description |
|---|---|
| Function | infer(targetVariable) |
| Parameters | targetVariable: The field specified here is used as a focus point for performing the anonymization. |
| Return Type | Returns an anon element with all the detected classifications and hierarchies generated. |
| Sample Request | e.infer(targetVariable=‘income’) |
For more sample requests that you can use, refer to Sample Requests for Protegrity Anonymization.

Note: You can use e.measure() to modify the request and view different outcomes of the result set.
For more information about the measure API, refer to Measure API.
Feedback
Was this page helpful?