Developer Assessment: getting error_bad_lines from stackData function

Monika
Monika Registered Posts: 1

While doing the Developper Assessment from Developer Certificate, on the first instruction (managed folders) i get an error "

[11:45:36] [INFO] [dku.utils]  - *************** Recipe code failed **************[11:45:36] [INFO] [dku.utils]  - Begin Python stack[11:45:36] [INFO] [dku.utils]  - Traceback (most recent call last):[11:45:36] [INFO] [dku.utils]  -   File "/opt/dataiku/python/dataiku/container/exec_py_recipe.py", line 15, in <module>[11:45:36] [INFO] [dku.utils]  -     exec(fd.read())[11:45:36] [INFO] [dku.utils]  -   File "<string>", line 25, in <module>[11:45:37] [INFO] [dku.utils]  -   File "/home/dataiku/lib/project/project-python-libs/DKU_EXAM_DEVELOPER/python/make_frames.py", line 49, in stackData[11:45:37] [INFO] [dku.utils]  -     data = pd.read_csv(stream, error_bad_lines=False, header=None)[11:45:37] [INFO] [dku.utils]  - TypeError: read_csv() got an unexpected keyword argument 'error_bad_lines'

while running the code directly from the notebook, i get the error in stackData line - seems like the read_csv() is using deprecated error_bad_lines instead of on_bad_lines argument instead. Any idea how to fix that so that I can move on ?

Best Answer

Setup Info
    Tags
      Help me…