Non-prompt $\rm D^0$ fraction as a function of $p_{\rm T}$