Check correctness of the result vs pandas