Use of std function in Statistics

Hopefully, you’ve got your answer, but in the future, please provide a minimal working example that demonstrates your problem and shows the error message. Please read: make it easier to help you