Exclude outliers from trendline in px.scatter

Hi everyone! Is there a way to specifically select particular values to be included in the trendline and exclude the outliers?