Module 3 - Assignment 2 - KeyError: 'working_time'

I have fixed the numpy and pandas version, but now receiving error as follows.

Are we supposed to receive this error or I have unknowingly modified some python file/code, which I should not have ?

Error_1: This was fixed

python gen_employee_schedule.py
Traceback (most recent call last):
File “gen_employee_schedule.py”, line 7, in
df = parse_json_schedule_and_save(‘info.json’)
File “/home/jovyan/work/assignment_part_2/df_converter.py”, line 22, in parse_json_schedule_and_save
new_df = pd.DataFrame.from_items(new_data)
AttributeError: type object ‘DataFrame’ has no attribute ‘from_items’
(assignment) jovyan@8db160da9543:~/work/assignment_part_2$

Error_2: Still exists

(assignment) jovyan@8db160da9543:~/work/assignment_part_2$ python gen_employee_schedule.py
Traceback (most recent call last):
File “gen_employee_schedule.py”, line 7, in
df = parse_json_schedule_and_save(‘info.json’)
File “/home/jovyan/work/assignment_part_2/df_converter.py”, line 26, in parse_json_schedule_and_save
df[‘working_time’] = new_df[‘working_time’]
File “/home/jovyan/.local/lib/python3.6/site-packages/pandas/core/frame.py”, line 2906, in getitem
indexer = self.columns.get_loc(key)
File “/home/jovyan/.local/lib/python3.6/site-packages/pandas/core/indexes/range.py”, line 358, in get_loc
raise KeyError(key)
KeyError: ‘working_time’

Any help will be highly appreciable.

Thank you,
Joydeep

You are supposed to fix the .py files, the code in there! Try to ask the LLM about these errors and give them also the initial code you are getting the error from…