File tree 2 files changed +25
-1
lines changed
src/datascience/ydata/datascience/common
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 1
1
from .privacy import PrivacyLevel
2
2
from .anonymizer import AnonymizerType
3
+ from .column_characteristic import ColumnCharacteristic
3
4
4
5
5
6
__all__ = [
6
7
"PrivacyLevel" ,
7
- "AnonymizerType"
8
+ "AnonymizerType" ,
9
+ "ColumnCharacteristic"
8
10
]
Original file line number Diff line number Diff line change
1
+ from ydata .core .enum import StringEnum
2
+
3
+
4
+ class ColumnCharacteristic (StringEnum ):
5
+ # Adding new characteristics may require adding a new generator to:
6
+ # src/ydatasynthesizers/ydata-synthesizers/ydata/synthesizers/faker/utils.py
7
+ ID = "id"
8
+ EMAIL = "email"
9
+ URL = "url"
10
+ UUID = "uuid"
11
+ NAME = "name"
12
+ PHONE = "phone"
13
+ VAT = "vat"
14
+ IBAN = "iban"
15
+ CREDIT_CARD = "credit_card"
16
+ COUNTRY = "country"
17
+ ZIPCODE = "zipcode"
18
+ ADDRESS = "address"
19
+ PII = 'PII'
20
+ # Generic characteristic grouping Country, Address, etc.
21
+ LOCATION = 'location'
22
+ PERSON = 'person' # Generic characteristic grouping person related attributes
You can’t perform that action at this time.
0 commit comments