I am a beginner in python and need help with the concat() method as the append method has been deprecated. Could anyone show me how to use the concat() method for this code? thanks
def gettrigger(self):
dfx = pd.DataFrame()
for i in range(self.lags + 1):
mask = (self.df['%K'].shift(i) < 20) & (self.df['%D'].shift(i) < 20)
dfx = dfx.append(mask, ignore_index=True)
return dfx.sum(axis=0)