fix of pandas lecture. Thanks to Brian M Hamlin