The truth value of a DataFrame is ambiguous.

Hello.

After reinstalling anaconda I started getting error in this code:


RICs=["SPY","TLT.O","IEF.O"]
timeseries=ek.get_timeseries(RICs,['CLOSE'],start_date='2020-08-10',end_date=RebalDate.strftime('2020-08-21'))
ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().

PS: ek.get_data works fine

Best Answer

Answers

  • @m.semyanin

    I assume that you are using eikon==1.1.5. I got the same error when using 1.1.5.

    eikon==1.1.5

    image

    You can downgrade to eikon==1.1.2 to avoid this issue.

    eikon==1.1.2

    image

  • Hi @m.semyanin

    I submitted a ticket no. 09107507 on your behalf.

    The support team will be reaching out to you.


    I tested the API call on 1.1.4(released on 18th Aug 2020) and 1.1.5(released on 20th Aug 2020) versions.

    The problem only happens with the 1.1.5 version.


    EK 1.1.4

    image


    EK 1.1.5

    image