import numpy as np
from scipy import interpolate
import pylab as py
import pandas as pd
def func(x1):
return x*np.exp(-5.0*x1**2)
dataset=pd.read_excel('Messwerte_FIBRE1.xlsx')
dataset=dataset.drop([0])
index=[1]
index2=[9]
x=dataset.iloc[:, index]
y=dataset.iloc[:, index2]
x1=np.array(x)
y1=np.array(y)
fvals=func(x1)
File "C:/Users/Windows 10/.spyder-py3/RBF.py", line 10, in func
return x*np.exp(-5.0*x1**2)
AttributeError: 'float' object has no attribute 'exp'
Any1 can help me to solve this problem?
Here is the png of my textfile
'Messwerte_FIBRE1.xlsx'is?np.