def _financialData(codes, rptDate):
if not w.isconnected(): w.start()
cols = ["净债务", "EBITDA", "财务费用","货币资金", "所有者权益",
"营业收入", "ROA", "速动比率", "现金短期债务比", "总资产"]
_, df = w.wss(codes, 'netdebt,ebitda2_ttm,finaexpense_ttm2,monetary_cap,tot_equity,\
or_ttm2,roa2_ttm2,quick,cashtostdebt,tot_assets',
f"unit=1;rptDate={rptDate};rptType=1", usedf=True)
df.columns = cols
df.dropna(how="any", inplace=True)
df["净债务比EBITDA"] = df["净债务"] / df["EBITDA"]
df["财务费用比EBITDA"] = df["财务费用"] / df["EBITDA"]
df["总债务比总资本"] = (df["净债务"] + df["货币资金"]) / df["所有者权益"]
df["EBITDA利润率"] = df["EBITDA"] / df["营业收入"]
df["对数营收规模"] = df["营业收入"].apply(lambda x: np.log(x / 100000000.0))
df["对数总资产"] = df["总资产"].apply(lambda x: np.log(x / 100000000.0))
colsRet = ["净债务比EBITDA", "财务费用比EBITDA", "总债务比总资本", "EBITDA利润率",
"速动比率", "现金短期债务比",
"对数营收规模", "对数总资产", "ROA"]
return df[colsRet]