For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

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

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
23k 22 9 14

Hello @m.semyanin and all,

According to case #09107507, the issue is fixed in the next version 1.1.6

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
38.1k 71 35 53

@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

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

eikon==1.1.2


1598327730923.png (32.6 KiB)
1598327613549.png (40.6 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
18k 21 12 20

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


EK 1.1.5


ek114.png (20.7 KiB)
ek115.png (68.5 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea