I get NaN. I was expecting the values to be populated per the document.
fund_df = get_fundamentals(query(fundamentals.valuation_ratios.pe_ratio)
.filter(fundamentals.valuation.market_cap > 10e9)
.filter(fundamentals.valuation_ratios.pe_ratio > 5)
.order_by(fundamentals.valuation.market_cap)
.limit(4),
today, '5y')
# OK, let's check out what we get back.
# When we provide a query and a date, we get back the same type of response
# as in the IDE: a dataframe with securities as columns and each requested
# metric as rows.
fund_df['pe_ratio']