src.data_sources.model_points.model_point.person.Person

class src.data_sources.model_points.model_point.person.Person(data: Dict)

Data source for a generic person.

Inheritance Diagram

Inheritance diagram of Person

Variables & Properties

date_of_birth

Date of birth for this particular individual.

gender

Gender for this particular individual.

id

Unique identifier for this particular individual.

Methods

__init__(data)

Constructor method.

Details

__init__(data: Dict)

Constructor method. Initializes a person based on data within a model point file.

Parameters:

data – Model point data.

cache: DataFrame

Internal cache, populated at runtime.

property date_of_birth: date

Date of birth for this particular individual.

Returns:

Date of birth.

property gender: Gender

Gender for this particular individual.

Returns:

Gender.

property id: str

Unique identifier for this particular individual. This could be a Social Security Number or DNA sequence. For security purposes, this value should probably be salted and hashed.

Returns:

Person ID.