Fixed pandas conversion example