Sample rate calculation is done of .wav data easily using following this code.
sampleRate, data = scipy.io.wavfile.read('ecg.wav')
times = np.arange(len(data))/sampleRate
If I want to calculate same sample rate of my .csv file what should I change in this code? I can read the data using pd.read_csv('ecg.csv')
this command. But how can I calculate sample rate?
This is csv data: