text_plain_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

value_strategy = pd.read_csv('/kaggle/input/algorithmic-trading-dataset/value_strategy_1.csv.csv')
recommended_trades = pd.read_csv('/kaggle/input/algorithmic-trading-dataset/recommended_trades_1.csv.csv')
momentum_srategy = pd.read_csv('/kaggle/input/algorithmic-trading-dataset/momentum_strategy_1.csv.csv')
trades = pd.read_csv('/kaggle/input/sp-500-stocks/sp_500_stocks.csv')

def chunks(lst, n):
    for i in range(0, len(lst), n):
        yield lst[i:i + n]
symbol_groups = list(chunks(trades['Ticker'], 100))
symbol_strings = []
for i in range(0, len(symbol_groups)):
    symbol_strings.append(','.join(symbol_groups[i]))
symbol_strings