Pep Guardiola has praised the attitude of his players since recovering from defeat to Newcastle.