Issue in Programming Assignment: Social Network Database

I am facing an issue in Programming Assignment: Social Network Database. It is because of a property missing in database schema. As I have taken screen shots , the function create_database() don’t have Surname property under Person object. Which is causing issue to pass the unit test case.




Kindly check this issue , I am not able to change the definition of create_database() function

Please post your question in the forum area for that course.

The “AI Discussions” forum is not the best place to get help with a specific course.

1 Like

Hi @AjayRege ,

The ‘name’ column in the ‘Person’ class contains the first name and surname in a string, so you need to extract the surname from that to create your database.

1 Like

@AjayRege - were you able to get past this issue. the csv file has surname, but its missing in the Person class.

Was able to get past that point by doing this.

name = row[“Name”] + " "+ row [“Surname”]

1 Like

Sure , I did not found the forum for this specific lab . Can you please provide the correct tag , that will be very helpful .

Thank you very much for the solution I will check it out.

Thanks for the solution

You have not said what course you are attending.