stock_new更新

This commit is contained in:
muliangshu
2026-01-25 20:47:42 +08:00
parent 21f6354658
commit 6d88b5e31d
+1 -1
View File
@@ -88,7 +88,7 @@ def stock_select(i):
'turnover_rate_f', 'volume_ratio', 'pe', 'pe_ttm', 'pb', 'ps_ttm', 'ps',
'total_share', 'float_share', 'free_share', 'total_mv', 'circ_mv']].copy()
db_stock['trade_date'] = last_day_str
db_stock['ts_code'] = db_stock['ts_code'].apply(lambda x: x[0:6])
# db_stock['ts_code'] = db_stock['ts_code'].apply(lambda x: x[0:6])
db_stock.to_sql("mu_stocks_new",con=engine, index=False, if_exists="append")
return last_day_str
if __name__ == '__main__':