Jun-18-2021, 08:54 PM
(This post was last modified: Jun-18-2021, 08:54 PM by michaelserra.)
(Jun-18-2021, 08:24 PM)snippsat Wrote: Post code in code tag not image,same as you dos with error message.
Try change to.
user_df = pd.DataFrame(credentials['username'], index=[0])Edit:
Ok i see you change it.
I can't know what does the user enter as username because it is stored into a variable.
Error:Traceback (most recent call last):
File "profile_creator.py", line 29, in <module>
add_dict(username,password,email,phone_number,notes)
File "profile_creator.py", line 6, in add_dict
user_df = pd.DataFrame(credentials['username'], index=[0])
KeyError: 'username'