generated from ydataai/opensource-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add column characteristic enum (#43)
- Loading branch information
1 parent
8654e01
commit 773fe46
Showing
2 changed files
with
25 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
from .privacy import PrivacyLevel | ||
from .anonymizer import AnonymizerType | ||
from .column_characteristic import ColumnCharacteristic | ||
|
||
|
||
__all__ = [ | ||
"PrivacyLevel", | ||
"AnonymizerType" | ||
"AnonymizerType", | ||
"ColumnCharacteristic" | ||
] |
22 changes: 22 additions & 0 deletions
22
src/datascience/ydata/datascience/common/column_characteristic.py
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from ydata.core.enum import StringEnum | ||
|
||
|
||
class ColumnCharacteristic(StringEnum): | ||
# Adding new characteristics may require adding a new generator to: | ||
# src/ydatasynthesizers/ydata-synthesizers/ydata/synthesizers/faker/utils.py | ||
ID = "id" | ||
EMAIL = "email" | ||
URL = "url" | ||
UUID = "uuid" | ||
NAME = "name" | ||
PHONE = "phone" | ||
VAT = "vat" | ||
IBAN = "iban" | ||
CREDIT_CARD = "credit_card" | ||
COUNTRY = "country" | ||
ZIPCODE = "zipcode" | ||
ADDRESS = "address" | ||
PII = 'PII' | ||
# Generic characteristic grouping Country, Address, etc. | ||
LOCATION = 'location' | ||
PERSON = 'person' # Generic characteristic grouping person related attributes |