File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,20 @@ The project is structured into three parts.
8989The results for this three parts will be found in the BLD folder after running the
9090project. This folder can be safely deleted every time before running the project again.
9191
92- # Cleaning Part Description
92+ ## Troubleshooting
93+
94+ 1 . If you are on a Windows machine and pytask does not work, you may try
95+
96+ ``` console
97+ $ conda activate project_mbb
98+ $ pip install kaleido==0.1.0.post1
99+ ```
100+
101+ 1 . If Pytest has problems, it may be because you run Pytest before Pytask. Some tests
102+ build on the data structure and the plots. In this case, to test like this was the
103+ best way to be sure that everything is working correctly.
104+
105+ # Cleaning Part Description (Extra, not mandatory to read)
93106
94107The data cleaning process was designed to be flexible, allowing easy adaptation for
95108adding new survey variables. This is achieved by modifying the dictionaries in the
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def data_test():
4040 return pd .DataFrame (data )
4141
4242
43- def test_labels_raw_type (enusc_raw , labels_raw ):
43+ def test_labels_raw_type (labels_raw ):
4444 assert isinstance (
4545 labels_raw , pd .DataFrame
4646 ), f"Expected pd.DataFrame, but got { type (labels_raw )} "
@@ -60,10 +60,6 @@ def test_concat_labels_var(enusc_raw, labels_raw):
6060 [
6161 data_test ["variable_name" ].iloc [0 ] == "rph_ID"
6262 and data_test ["label" ].iloc [0 ] == "Identificador de persona" ,
63- data_test ["variable_name" ].iloc [1247 ] == "HUR"
64- and data_test ["label" ].iloc [1247 ] == "Hurto consumado" ,
65- data_test ["variable_name" ].iloc [1300 ] == "Conglomerado"
66- and data_test ["label" ].iloc [1300 ] == "Pseudoconglomerado" ,
6763 ]
6864 )
6965
You can’t perform that action at this time.
0 commit comments