The following code returns a series, but i want it to return it as a data frame. I have tried double square brackets following .loc, but get the type error unhashable type: \'li