enadepy package¶
Submodules¶
enadepy.frequent module¶
enadepy.helpers module¶
A set of helpers for all Enade microdata data mining stages.
-
enadepy.helpers.
list_cols_disc_status
(exclude: List[str] = None) → List[str][source]¶ Returns situation types from discursive questions.
Returns variable names related to the situation types from questions in the discursive part of the exam.
Parameters: - exclude (List[str], optional) – list of variables to exclude from
- output. Defaults to None. (the) –
Returns: The variable names, excluding the ones passed as argument.
Return type: List[str]
-
enadepy.helpers.
list_cols_exam
(exclude: List[str] = None) → List[str][source]¶ Returns variable names related to the exam.
Parameters: - exclude (List[str], optional) – list of variables to exclude from
- output. Defaults to None. (the) –
Returns: The variable names related to the exam, excluding the ones passed as argument.
Return type: List[str]
-
enadepy.helpers.
list_cols_exam_eval
(exclude: List[str] = None) → List[str][source]¶ Returns columns related to the perception about the exame.
Returns variable names related to the perception of the student about the exam.
Parameters: - exclude (List[str], optional) – list of variables to exclude from
- output. Defaults to None. (the) –
Returns: The variable names, excluding the ones passed as argument.
Return type: List[str]
-
enadepy.helpers.
list_cols_grades
(exclude: List[str] = None) → List[str][source]¶ Returns variable names related to the grades.
Parameters: - exclude (List[str], optional) – list of variables to exclude from
- output. Defaults to None. (the) –
Returns: The variable names related to the grades, excluding the ones passed as argument.
Return type: List[str]
-
enadepy.helpers.
list_cols_inst_eval
(exclude: List[str] = None) → List[str][source]¶ Returns variable names related to institution evaluation.
Parameters: - exclude (List[str], optional) – list of variables to exclude from
- output. Defaults to None. (the) –
Returns: The variable names related to institution evaluation, excluding the ones passed as argument.
Return type: List[str]
-
enadepy.helpers.
list_cols_institution
(exclude: List[str] = None) → List[str][source]¶ Returns variable names related to the institution.
Parameters: - exclude (List[str], optional) – list of variables to exclude from
- output. Defaults to None. (the) –
Returns: The variable names related to the institution, excluding the ones passed as argument.
Return type: List[str]
-
enadepy.helpers.
list_cols_licentiate
(exclude: List[str] = None) → List[str][source]¶ Returns variable names related to licentiate courses.
Parameters: - exclude (List[str], optional) – list of variables to exclude from
- output. Defaults to None. (the) –
Returns: The variable names related to licentiate courses, excluding the ones passed as argument.
Return type: List[str]
-
enadepy.helpers.
list_cols_obj_info
(exclude: List[str] = None) → List[str][source]¶ Returns variable names related to the objective part of the exam.
Parameters: - exclude (List[str], optional) – list of variables to exclude from
- output. Defaults to None. (the) –
Returns: The variable names related to the objective part of the exam, excluding the ones passed as argument.
Return type: List[str]
-
enadepy.helpers.
list_cols_presence
(exclude: List[str] = None) → List[str][source]¶ Returns variable names related to types of presence.
Parameters: - exclude (List[str], optional) – list of variables to exclude from
- output. Defaults to None. (the) –
Returns: The variable names related to types of presence, excluding the ones passed as argument.
Return type: List[str]
-
enadepy.helpers.
list_cols_socioecon
(exclude: List[str] = None) → List[str][source]¶ Returns variable names related to socioeconomics aspects.
Parameters: - exclude (List[str], optional) – list of variables to exclude from
- output. Defaults to None. (the) –
Returns: The variable names related to socioeconomics aspects, excluding the ones passed as argument.
Return type: List[str]
-
enadepy.helpers.
list_cols_student
(exclude: List[str] = None) → List[str][source]¶ Returns variable names related to the student.
Parameters: - exclude (List[str], optional) – list of variables to exclude from
- output. Defaults to None. (the) –
Returns: The variable names related to the student, excluding the ones passed as argument.
Return type: List[str]
-
enadepy.helpers.
list_cols_vectors
(exclude: List[str] = None) → List[str][source]¶ Returns variable names related to vectors.
Vectors, in this context, refer to the structures which contain the answers for the questions from the exam.
Parameters: - exclude (List[str], optional) – list of variables to exclude from
- output. Defaults to None. (the) –
Returns: The variable names related to vectors, excluding the ones passed as argument.
Return type: List[str]
enadepy.index module¶
A set of indexes that map identifiers to descriptions.
Each index in this module relates to a question or student/institution information (variable) in Enade microdata. Indexes are represented by dictionaries and should not be accessed directly.
-
enadepy.index.
get_index_dict
(varname: str) → Dict[KT, VT][source]¶ Gets a map to translate indexes from a given variable.
Given a variable name (column name from Enade microdata), returns a dictionary containing the values seen in microdata as dictionary’s keys and the respective descriptions as dictionary’s values.
Parameters: varname (str) – A variable or column name from Enade microdata. Raises: NameError
– if a dictionary was not found for the given name.Returns: A dictionary mapping values to descriptions for a given variable or column name. Return type: Dict
enadepy.loaders module¶
enadepy.transform module¶
Module contents¶
Provides functions to handle and analyse Enade microdata.