Hello, with this request in Excel using PI#S and DN (A2 = S&PCOMP ticker):
=@DSGRID(Data!$A$2,"X(PI#S)","2021-12-31","","DN","RowHeader=true;ColHeader=true;DispSeriesDescription=false;YearlyTSFormat=false;QuarterlyTSFormat=false;AutoRefresh=false","")
I am able to pull the S&P 500 last value excluding holidays (dates).
How I can translate this method in python code for CodeBook ? Could you provide an example that matches the same output I obtain in Excel ?