First code snippet:
imp.fit_transform(dataset['Age'].values.reshape(-1,1))
dataset['Age'] = dataset['Age'].values.reshape(-1,1)
Second code snippet:
imp.fit(dataset['Age'].values.reshape(-1, 1))
dataset['Age'] = imp.transform(dataset['Age'].values.reshape(-1, 1))
The first code snippet does not make any change to the age column of my dataset.