def _update_state(self):
    if (len(self.df.tic.unique()) > 1):
        state = ((([self.state[0]] + self.data.close.values.tolist()) + list(self.state[(self.stock_dim + 1):((self.stock_dim * 2) + 1)])) + sum([self.data[tech].values.tolist() for tech in self.tech_indicator_list], []))
    else:
        state = ((([self.state[0]] + [self.data.close]) + list(self.state[(self.stock_dim + 1):((self.stock_dim * 2) + 1)])) + sum([[self.data[tech]] for tech in self.tech_indicator_list], []))
    return state
def _update_state(self):
    if (len(self.df.tic.unique()) > 1):
        state = ((([self.state[0]] + self.data.close.values.tolist()) + list(self.state[(self.stock_dim + 1):((self.stock_dim * 2) + 1)])) + sum([self.data[tech].values.tolist() for tech in self.tech_indicator_list], []))
    else:
        state = ((([self.state[0]] + [self.data.close]) + list(self.state[(self.stock_dim + 1):((self.stock_dim * 2) + 1)])) + sum([[self.data[tech]] for tech in self.tech_indicator_list], []))
    return state