1919
2020def get_paths (root ):
2121 return [
22- ( rf'{ root } \get_extras_stock_is_st' , False ) ,
23- ( rf'{ root } \get_industry_stock' , False ) ,
24- ( rf'{ root } \get_price_stock_factor' , False ) ,
25- ( rf'{ root } \get_price_stock_daily' , False ) ,
22+ rf'{ root } \get_extras_stock_is_st' ,
23+ rf'{ root } \get_industry_stock' ,
24+ rf'{ root } \get_price_stock_factor' ,
25+ rf'{ root } \get_price_stock_daily' ,
2626
27- # ignore_index=True 表示合并时丢弃索引,因为索引不含有效信息
28- (rf'{ root } \get_fundamentals_balance' , True ),
29- (rf'{ root } \get_fundamentals_cash_flow' , True ),
30- (rf'{ root } \get_fundamentals_income' , True ),
31- (rf'{ root } \get_fundamentals_indicator' , True ),
32- (rf'{ root } \get_fundamentals_valuation' , True ),
33- (rf'{ root } \get_STK_XR_XD' , True ),
34- (rf'{ root } \get_STK_BALANCE_SHEET' , True ),
35- (rf'{ root } \get_STK_CASHFLOW_STATEMENT' , True ),
36- (rf'{ root } \get_STK_INCOME_STATEMENT' , True ),
27+ rf'{ root } \get_fundamentals_balance' ,
28+ rf'{ root } \get_fundamentals_cash_flow' ,
29+ rf'{ root } \get_fundamentals_income' ,
30+ rf'{ root } \get_fundamentals_indicator' ,
31+ rf'{ root } \get_fundamentals_valuation' ,
32+ rf'{ root } \get_STK_XR_XD' ,
33+ rf'{ root } \get_STK_BALANCE_SHEET' ,
34+ rf'{ root } \get_STK_CASHFLOW_STATEMENT' ,
35+ rf'{ root } \get_STK_INCOME_STATEMENT' ,
3736
38- ( rf'{ root } \get_index_weights\000016.XSHG' , False ) ,
39- ( rf'{ root } \get_index_weights\000300.XSHG' , False ) ,
40- ( rf'{ root } \get_index_weights\000852.XSHG' , False ) ,
41- ( rf'{ root } \get_index_weights\000905.XSHG' , False ) ,
37+ rf'{ root } \get_index_weights\000016.XSHG' ,
38+ rf'{ root } \get_index_weights\000300.XSHG' ,
39+ rf'{ root } \get_index_weights\000852.XSHG' ,
40+ rf'{ root } \get_index_weights\000905.XSHG' ,
4241
43- ( rf'{ root } \get_price_futures_daily' , False ) ,
44- ( rf'{ root } \get_dominant_futures' , False ) ,
42+ rf'{ root } \get_price_futures_daily' ,
43+ rf'{ root } \get_dominant_futures' ,
4544 ]
4645
4746
@@ -53,12 +52,12 @@ def main():
5352
5453 paths1 = get_paths (PATH_INPUT1 )
5554 paths2 = get_paths (PATH_OUTPUT )
56- for ( path1 , _ ), ( path2 , _ ) in zip (paths1 , paths2 ):
55+ for path1 , path2 in zip (paths1 , paths2 ):
5756 logger .info ('=' * 60 , )
5857 path1 = pathlib .Path (path1 )
5958 path2 = pathlib .Path (path2 )
6059 files = path_groupby_date (path1 , path2 )
61- merge_files_dict (files , ignore_index = _ , delete_src = False )
60+ merge_files_dict (files , delete_src = False )
6261 remove_sub_range (path2 )
6362
6463
0 commit comments