我有一个问题,我希望找到系列中每个元素的最小值和数字。但是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**