stock_data.columns = pd.MultiIndex.from_product([[stock_name], stock_data.
    columns])
if data is None:
    data = stock_data
else:
    data = pd.concat([data, stock_data], axis=1)
How to append to multilevel pandas dataframe using iteration?