I need help recreating the output of the following without using get_fundamentals. Thanks.
longs = get_fundamentals(
# Retrieve data based on PE ratio and economic sector
query(fundamentals.earnings_ratios.diluted_eps_growth,
fundamentals.asset_classification.morningstar_sector_code,
fundamentals.share_class_reference.symbol)
# Filter where PE ratio is greater than 20
.filter(fundamentals.earnings_ratios.diluted_eps_growth > 6)
# Filter where PE ratio is less than 50
.filter(fundamentals.earnings_ratios.diluted_eps_growth < 10000)
).T