siat 3.4.5__py3-none-any.whl → 3.4.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
siat/financials_china.py CHANGED
@@ -57,6 +57,7 @@ if __name__=='__main__':
57
57
  ticker='600791.SS'
58
58
 
59
59
  ticker="601375.SS"
60
+ ticker="600305.SS"
60
61
 
61
62
  akfs=get_fin_stmt_ak(ticker)
62
63
 
@@ -3427,8 +3428,8 @@ def str_contain_any_substr(astr,substrlist):
3427
3428
 
3428
3429
  #==============================================================================
3429
3430
  if __name__=='__main__':
3430
- ticker='000002.SZ'
3431
- fsdates=['2022-12-31','2021-12-31','2020-12-31']
3431
+ ticker='600305.SS'
3432
+ fsdates=['2023-6-30','2022-6-30','2021-6-30']
3432
3433
 
3433
3434
  fsdf1=get_fin_summary_1ticker_china(ticker,fsdates)
3434
3435
 
@@ -3455,6 +3456,10 @@ def get_fin_summary_1ticker_china(ticker,fsdates):
3455
3456
  _,t1,_=split_prefix_suffix(ticker)
3456
3457
  dft=ak.stock_financial_abstract(t1)
3457
3458
 
3459
+ #akshare错误更正:此处的“营业成本”其实为“营业总成本”
3460
+ if ("营业成本" in list(dft['指标'])) and not ("营业总成本" in list(dft['指标'])):
3461
+ dft.loc[dft['指标']=="营业成本","指标"]="营业总成本"
3462
+
3458
3463
  # 处理金额单位和百分号字段
3459
3464
  # 选项-指标对照表
3460
3465
  option_indicator_df=dft[['选项','指标']]
@@ -3633,7 +3638,7 @@ def compare_fin_summary_china(tickers,fsdates,facecolor='whitesmoke',font_size='
3633
3638
  typelist=['常用指标','每股指标','营运能力','盈利能力','收益质量','成长能力','财务风险']
3634
3639
  # 手工设定项目显示顺序,使其看起来更合理
3635
3640
  typedict={'常用指标':
3636
- ['营业总收入(亿元)','营业成本(亿元)',
3641
+ ['营业总收入(亿元)','营业总成本(亿元)',
3637
3642
  '净利润(亿元)','扣非净利润(亿元)','归母净利润(亿元)',
3638
3643
  '毛利率%','销售净利率%','期间费用率%',
3639
3644
  '基本每股收益(元)','总资产报酬率(ROA)%','净资产收益率(ROE)%',
@@ -3642,7 +3647,7 @@ def compare_fin_summary_china(tickers,fsdates,facecolor='whitesmoke',font_size='
3642
3647
  '资产负债率%','商誉(亿元)',],
3643
3648
 
3644
3649
  '每股指标':
3645
- ['每股营业总收入(元)','每股营业收入(元)',
3650
+ ['每股营业总收入(元)',#'每股营业收入(元)',
3646
3651
  '每股息税前利润(元)','基本每股收益(元)','稀释每股收益(元)',
3647
3652
  '每股净资产_最新股数(元)','摊薄每股净资产_期末股数(元)','调整每股净资产_期末股数(元)',
3648
3653
  '每股未分配利润(元)','每股留存收益(元)','每股盈余公积金(元)','每股资本公积金(元)',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: siat
3
- Version: 3.4.5
3
+ Version: 3.4.6
4
4
  Summary: Securities Investment Analysis Tools (siat)
5
5
  Home-page: https://pypi.org/project/siat/
6
6
  Author: Prof. WANG Dehong, International Business School, Beijing Foreign Studies University
@@ -41,7 +41,7 @@ siat/financial_statements_test.py,sha256=FLhx8JD-tVVWSBGux6AMz1jioXX4U4bp9DmgFHY
41
41
  siat/financials.py,sha256=mbEZSNeHMMFcnPUryQWvdmNlWQvpnOG9eItgS7IVw3k,80458
42
42
  siat/financials2 - 副本.py,sha256=dKlNjIfKeoSy055fQ6E6TUj9HEoO5Ney9grD84J5kfk,14389
43
43
  siat/financials2.py,sha256=7mnsTncKsgwFu8PP4refh5C5iMIO9P0KOMSF87ZyncY,45736
44
- siat/financials_china.py,sha256=BkfY8A3YH2_NRyqIwGZ3MA1dq75VGhMaTqE0SAlbYrk,191413
44
+ siat/financials_china.py,sha256=Pgi-CTl7ZT_RxHt70N7wBjMQ_UUAqZFClLh6GpcK0MQ,191709
45
45
  siat/financials_china2.py,sha256=tUvWZhUORrZ0EuCVVkJifbO-8d_hXUyA73OPmOX1CL0,92862
46
46
  siat/financials_china2_test.py,sha256=Erz5k4LyOplBBvYls2MypuqHpVNJ3daiLdyeJezNPu0,2722
47
47
  siat/financials_china2_test2.py,sha256=C8CuYTMHN4Mhp-sTu-Bmg0zMXRCaYV6ezGDoYartRYQ,3507
@@ -139,7 +139,7 @@ siat/valuation_china.py,sha256=EkZQaVkoBjM0c4MCNbaX-bMnlG0e3FXeaWczZDnkptU,67784
139
139
  siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
140
140
  siat/var_model_validation.py,sha256=R0caWnuZarrRg9939hxh3vJIIpIyPfvelYmzFNZtPbo,14910
141
141
  siat/yf_name.py,sha256=H1EM8YYXA8nQHIqsJlso0I3HKPiJLT3QujO4gRVQXWs,13945
142
- siat-3.4.5.dist-info/METADATA,sha256=s7PokbLSpdGtRVg9ClmidJgxgmcaYFvsOPze9QP-UlQ,7309
143
- siat-3.4.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
144
- siat-3.4.5.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
145
- siat-3.4.5.dist-info/RECORD,,
142
+ siat-3.4.6.dist-info/METADATA,sha256=Agk7WFoMV7XNYw3oVZAWg1hEo1UmDFKgavjPoVFN0z8,7309
143
+ siat-3.4.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
144
+ siat-3.4.6.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
145
+ siat-3.4.6.dist-info/RECORD,,
File without changes