-
Notifications
You must be signed in to change notification settings - Fork 568
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement user-defined entity selection strategies in Presidio …
…Structured (#1319)
- Loading branch information
Showing
4 changed files
with
228 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,17 @@ def sample_df(): | |
} | ||
return pd.DataFrame(data) | ||
|
||
@pytest.fixture | ||
def sample_df_strategy(): | ||
data = { | ||
'name': ['John Doe', 'Jane Smith', 'Alice Johnson'], | ||
'email': ['[email protected]', '[email protected]', '[email protected]'], | ||
'city': ['Anytown', 'Somewhere', 'Elsewhere'], | ||
'state': ['CA', 'TX', 'NY'], | ||
'postal_code': [12345, 67890, 11223] | ||
} | ||
|
||
return pd.DataFrame(data) | ||
|
||
@pytest.fixture | ||
def sample_json(): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters