list_combine=["class_size","demographics","survey", "hs_directory"] for i in list_combine: combined=combined.merge(data[i], on = "DBN", how ="inner") combined.head() combined.shape
What I expected to happen:
I thought this is correct answer and when I check with the answer it’s the same.
What actually happened:
combined isn’t defined in your code, but we expected it to be DataFrame type
When I replace my code with answer from dataquest, it show a dataframe. This confuses me because when the instruction asks for shape of “combined” dataframe, it must be a tupple of collumns and rows of the “combined” dataframe, not the “combined” datatframe itself.
Can anyone check for me that my understanding is wrong or the answer of dataquest is has an issue?
Thanks in advance.