Tweak pandas parsing logic to fix failing tests