I have looked around online and it seems that the signaltonoise ratio function inside the scipy.stats is deprecated and is not available in version 1.1. Is there any other equivalent method inside scipy package since I have not been able to find it online.
And if not scipy then is there any other library recommended for such calculations ?
As indicated in scipy issue #609 on github, the
signaltonoise
functionIf you do need this function for backward compatibility, the short implementation can be found in the history of scipy repository as (reproduced here without the documentation comments, license):