change pandas tutorial to use loc and iloc