SexColumnMapper
Mapper for a column that indicates the sex of the individual
Parameters:
Name | Type | Description | Default |
---|---|---|---|
male_symbol
|
str
|
the synbol for males, e.g. "M", "male", "MALE" |
required |
female_symbol
|
str
|
the synbol for females, e.g. "F", "female", "FEMALE" |
required |
column_name
|
str
|
name of the sex column in the original table |
required |
other_symbol
|
str
|
symbol for other sex |
None
|
unknown_symbol
|
str
|
symbol for unknown sex |
None
|
not_provided
|
str
|
symbol for cases where the sex is not indicated in the original table |
False
|
Source code in pyphetools/creation/sex_column_mapper.py
__init__(male_symbol, female_symbol, column_name, other_symbol=None, unknown_symbol=None, not_provided=False)
Constructor
Source code in pyphetools/creation/sex_column_mapper.py
not_provided()
staticmethod
Create an object for cases where sex is not indicated.