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.

Upvotes
Accepted
84.7k 289 53 77

@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.