df.ix not working , whats the right iloc method?

后端 未结 0 1148
北海茫月
北海茫月 2020-12-13 16:46

This is my program-

#n= no. of days
def ATR(df , n):
  df[\'H-L\'] = abs(df[\'High\'] - df[\'Low\'])
  df[\'H-PC\'] = abs(df[\'High\'] - df[\'Close\'].shift(1         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题