I\'ve tried searching for an answer to this problem but so far I haven\'t found any. I used statsmodel to implement an Ordinary Least Squares regression model on a mean-impu
I was dealing with the same issue. The solution is to use the statsmodels library:
statsmodels
from statsmodels.stats.outliers_influence import OLSInfluence
It has a resid_studentized_internal method included.
resid_studentized_internal