My code:

```
slope, intercept, r_value, p_value, std_err = stats.linregress(ages_charges['age'],ages_charges['charges'])
scat=sns.regplot(
x=ages_charges['age'],
y=ages_charges['charges'],
color='blue',
label=f'y={round(slope,2)}x+{round(intercept)}'
).legend().set_title('The Linear Regression Equation')
scat.set_title('The Correlation between Age and Charge Amount')
#when running the above line I get an Attribute Error: 'NoneType' object has no attribute 'set_title'
```