ebit,cash怎么好多NAN

jdtomliljcs 2017-09-02 13:04:36

浏览量: 100

本来想试试pe和EV/ebit选股,但选股后发现得到的eibt,cash好多都是NAN,需要怎么解决,谢谢各位了!!!新手入门

def my_stock_filter():
    #a_share_market_val  A股市值(含限售股)
    #ebit 息税前利润EBIT
    #total_liabilities 负债合计
    #cash 现金
    # EV=a_share_market_val+total_liabilities-cash
    dataframe = get_fundamentals(
     query(
         fundamentals.equity_valuation_indicator.pe_ratio_ttm,
         fundamentals.equity_valuation_indicator.a_share_market_val,
         fundamentals.financial_analysis_indicator.ebit,
         fundamentals.balance_sheet.total_liabilities,
         fundamentals.balance_sheet.cash
     ).filter(
         fundamentals.equity_valuation_indicator.pe_ratio_ttm > 0
     ).filter(
         fundamentals.equity_valuation_indicator.pe_ratio_ttm < 100
     ).order_by(
         fundamentals.equity_valuation_indicator.pe_ratio_ttm.asc()
     )
    )
    print(dataframe.shape)
    print(dataframe.head())


1条回复 添加回复
1
提交
Copyright © 2004-2017 京东JD.com 版权所有 | 投资有风险,购买需谨慎