def ROA_q(self): totalassets = self.totalassets netprofit = self.netprofit # 得到单季度 净利润 sig_season_netprofit = get_signal_season_value(netprofit) # 得到季度平均总资产 s_mean_totalassets = get_season_mean_value(totalassets) roa_q = (sig_season_netprofit / s_mean_totalassets) * 100 roa_q = adjust_months(roa_q) roa_q = append_df(roa_q) roa_q = CALFUNC.del_dat_early_than(roa_q, START_YEAR) return roa_q
def ROE_q(self): totalshareholderequity = self.totalshareholderequity netprofit = self.netprofit # 得到单季度 净利润 sig_season_netprofit = get_signal_season_value(netprofit) # 得到季度平均总资产 s_mean_equity = get_season_mean_value(totalshareholderequity) roe_q = (sig_season_netprofit / s_mean_equity) * 100 roe_q = adjust_months(roe_q) roe_q = append_df(roe_q) roe_q = CALFUNC.del_dat_early_than(roe_q, START_YEAR) return roe_q
def assetturnover_q(self): totalassets = self.totalassets revenue = self.operatingrevenue # 得到单季度 净利润 sig_season_revenue = get_signal_season_value(revenue) # 得到季度平均总资产 s_mean_totalassets = get_season_mean_value(totalassets) turnover_q = (sig_season_revenue / s_mean_totalassets) * 100 turnover_q = adjust_months(turnover_q) turnover_q = append_df(turnover_q) turnover_q = CALFUNC.del_dat_early_than(turnover_q, START_YEAR) return turnover_q