stock_new更新
This commit is contained in:
@@ -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__':
|
||||
|
||||
Reference in New Issue
Block a user