系列对象不可调用

时间:2017-02-25 15:40:02

标签: python numpy

我有一个问题,我希望找到系列中每个元素的最小值和数字。但是python正在抛出错误。我对编程比较陌生,所以非常感谢这方面的任何帮助

gap1 = dr.loc[data1]['gap']
pnl = 0
eod_ind=0
bandhigh = df1.ix[low]['Open'] + **min(upperband*abs(gap1),50.0)**
bandlow = df1.ix[low]['Open'] - lowerband*abs(gap1)

我收到以下错误

---> 60     bandhigh = df1.ix[low]['Open'] + min(upperband*abs(gap1),50.0)
 61     bandlow = df1.ix[low]['Open'] - lowerband*abs(gap1)
 62     #print bandhigh, df1.ix[low]['Open'],upperband,abs(gap1)

**TypeError: 'Series' object is not callable**

0 个答案:

没有答案