Python Dataframe Object Has No Attribute Status Code