Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

Add new column in my dataframe with Major News on corresponding date?

Hello,


Here is my dataframe,

capture.jpg

I would like to add a column with the major news on the corresponding day and ticker.

So for instance, what's the major news for HCA on 2022 04 22 for the first row

Thank you

eikon-data-api#technologynews
capture.jpg (32.7 KiB)
icon clock
10 |1500

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

Hi @florentmartini ,

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,

AHS

@florentmartini

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

Upvotes
Accepted
79.4k 253 52 74

@florentmartini

Thank you for reaching out to us.

Please let us know which API you are using.

If you using Eikon Data API, you can call the get_news_headlines method to get news headlines.

ek.get_news_headlines("LEN AND Topic:NEWS1 AND R:HCA", count=100)

1688615543664.pngHowever, with Eikon Data API, the depth of news history is 15 months.


1688615543664.png (33.6 KiB)
icon clock
10 |1500

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

Upvotes
1 0 0 0

I am using the Eikon data API,

Ok,

Thanks for your answer,


Regards,


icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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