title: how to calculate signal to noise ratio using python
body: <p>Dear experts i have a data set.i just want to calculate signal to noise ratio of the data. data is loaded here <a href="https://i.fluffy.cc/jwg9d7nRNDFqdzvg1Qthc0J7CNtKd5CV.html" rel="noreferrer">https://i.fluffy.cc/jwg9d7nRNDFqdzvg1Qthc0J7CNtKd5CV.html</a></p>
  <p>my code is given below:</p>
  <pre><code>import numpy as np
  from scipy import signaltonoise
  import scipy.io
  dat=scipy.io.loadmat('./data.mat')
  arr=dat['dn']
  snr=scipy.stats.signaltonoise(arr, axis=0, ddof=0) 
  </code></pre>
  <p>but i am getting error like importError: cannot import name 'signaltonoise' from 'scipy'
  if it doesn't exist how to calculate snr,please suggest some other way to do it with this data set using python.</p>