abjer / sds2019

Social Data Science 2019 - a summer school course
https://abjer.github.io/sds2019
46 stars 96 forks source link

Assignment 2 | assert 12.2.2. #32

Closed jossl95 closed 5 years ago

jossl95 commented 5 years ago

The assert for answer 12.2.2. seem to check the dimension of the output DataFrame: (20, 3). For checking the number of columns it asserts all(len(i) == 3 for i in output), this races an unspecified error. Wouldn't len(output.columns) == 3 be more a robust assertion?

jossl95 commented 5 years ago

Resolved: The assertion works on numpy arrays.