Data Science, Reinforcement Learning, Q Learning, S P 500 Index, Finance.
df.iterrows(): new_state = [] for c in row[1].items(): new_state.append(c[1]) states.add(tuple(new_state)) index = pd.MultiIndex.from_tuples(list(states), names=["information_technology", "health_care"]) policy = pd.DataFrame(0, index = index, columns = ['buy_buy', 'buy_sell', 'sell_sell',