Importing Deal Screener

Options
Felipe
Felipe Newcomer
edited August 6 in Refinitiv Data Platform

Hi! I am trying to access M&A data via a Python App but I'm getting an error importing the Deals Screener. This is my attempt:

import refinitiv.data as rd

from refinitiv.data.discovery import search

from refinitiv.data.content

import deals import pandas as pd
rd.open_session(app_key="APP KEU")
screener = deals.Screener()
results = screener.run( view = "MA",

filter = { "Deal Type": "Asset Sale", "Asset Description": "LNG terminal", "Region": "North America", "Start Date": "2005-01-01", "End Date": "2025-12-31" } )
df = results.data df = df.sort_values("Deal Value (US$ Mil)", ascending=False)
cols = [ "Deal Id", "Announced Date", "Effective Date", "Target Company Name", "Acquirer Company Name", "Deal Value (US$ Mil)", "Asset Description" ]

print(df[cols].head(10))
df[cols].to_csv("top_lng_terminal_deals.csv", index=False)

The error that I'm getting is:

ImportError: cannot import name 'deals' from 'refinitiv.data.content'

Any guidance would be very appreciated! Thansk!

Best,

Felipe

Answers