import codecs
filecp = codecs.open('sunspot.dat', encoding ='utf-8')
file_data = np.loadtxt(filecp, usecols=(0,1),skiprows=1)
x = file_data[:,0]
y = file_data[:,1]
import codecs
filecp = codecs.open('sunspot.dat', encoding ='utf-8')
file_data = np.loadtxt(filecp, usecols=(0,1),skiprows=1)
x = file_data[:,0]
y = file_data[:,1]