Hi there, i tried to run the following code

from clr import AddReference AddReference("System") AddReference("QuantConnect.Common") AddReference("QuantConnect.Jupyter") AddReference("QuantConnect.Indicators") from System import * from QuantConnect import * from QuantConnect.Data.Market import TradeBar, QuoteBar from QuantConnect.Jupyter import * from QuantConnect.Indicators import * from datetime import datetime, timedelta import matplotlib.pyplot as plt import pandas as pd import matplotlib.pyplot as plt import matplotlib.cm as cm import numpy as np import pandas as pd import statsmodels.api as sm from math import floor plt.style.use('seaborn-whitegrid') from sklearn import linear_model # Create an instance qb = QuantBook() syls = ["XOM","CVX"] qb.AddEquity(syls[0]) qb.AddEquity(syls[1]) x = qb.History(syls[0], 100, Resolution.Daily).loc[syls[0]]['close'] y = qb.History(syls[1], 100, Resolution.Daily).loc[syls[1]]['close']

and i got the following error

5 x = qb.History(syls[0], 100, Resolution.Daily).loc[syls[0]]['close'] 6 y = qb.History(syls[1], 100, Resolution.Daily).loc[syls[1]]['close'] AttributeError: '1, Culture=neutral, PublicKeyToken=null]]' object has no attribute 'loc'

i also tried the solutions given in

https://www.quantconnect.com/forum/discussion/2641/history-method-not-returning-a-dataframe-in-python/p1/comment-8071But nothing worked for me.Thank you very much for your answers