Client was able to get that Ownership Summary data from the following code.
# LOCATION
import refinitiv.data as rd
import pandas as pd
b = ['SetLabel(TR.InstrStatLocationId,location),SetLabel(TR.InstrStatLocation,locationName)',
'SetLabel(TR.CategoryInvestorCount,investorCount),SetLabel(TR.CategoryOwnershipPct,os)',
'SetLabel(TR.InstrStatCatSharesHeld,position)','SetLabel(TR.InstrStatCatShrsHldVal,heldValue)','StatType=3','Curn=USD']
b_ = fetch_refinitv_data('GE',b)
region = ['North America', 'Europe', 'Asia / Pacific', 'Africa', 'Middle East', 'Latin America']
b_[b_['LOCATIONNAME'].isin(region)]
Now he wants to get data for last month/quarter/year (historically) data. When I tried copy and pasting this code in Codebook - I am getting error "
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/tmp/ipykernel_76/2082299371.py in <module>
11 'SetLabel(TR.InstrStatCatSharesHeld,position)','SetLabel(TR.InstrStatCatShrsHldVal,heldValue)','StatType=3','Curn=USD']
12
---> 13 b_ = fetch_refinitv_data('GE',b)
14
15 region = ['North America', 'Europe', 'Asia / Pacific', 'Africa', 'Middle East', 'Latin America']
NameError: name 'fetch_refinitv_data' is not defined"