Due to description "adjusted_geography_segment_data" returns adjustment of geographical and segment income/expenses. So as I understood it should return dictionary with country index or segment index as key and value characterizing adjustment as value. Each field in Fundametals is BoundColumn class. Dtype method returns float, which is not entirely understandable for me. If set this field to run_pipeline with latest method all values will be NaN.
from quantopian.pipeline import Pipeline
from quantopian.pipeline.filters import QTradableStocksUS
from quantopian.pipeline.data import Fundamentals
from quantopian.research import run_pipeline
def make_pipeline():
base_universe = QTradableStocksUS()
segment_data = Fundamentals.adjusted_geography_segment_data.latest
return Pipeline(
columns={
'adjusted_geography_segment_data': segment_data,
},
screen=base_universe
)
pipeline_output = run_pipeline(
make_pipeline(),
start_date='2017-01-01',
end_date='2017-08-31'
)
aapl_output = pipeline_output.xs(
symbols('AAPL'),
level=1
)
aapl_output.tail(30)
So, please, help me to understand real meaning of data produced when "adjusted_geography_segment_data" is loaded and how to use this field corectly.