!pip install PyEMD==0.5.1

#Empirical Mode Decomposition
!pip install EMD-signal
from PyEMD import EMD
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import pylab as plt
import array as arr
#emd = EMD(DTYPE=np.float16)
#IMFs = emd.emd(s)
#reading the data from Excel file
data = pd.read_csv("Time_Series_HW-20210326-132909.csv")
s = data['100 added']
t = data['Time']
#
# Execute EMD on signal
IMF = EMD().emd(s,t)
N = IMF.shape[0]+1
# Plot results
plt.subplot(N,1,1)
plt.plot(t, s, 'r')
for n, imf in enumerate(IMF):
plt.subplot(N,1,n+2)
plt.plot(t, imf, 'g')