siat 3.8.35__py3-none-any.whl → 3.8.36__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/economy2.py CHANGED
@@ -359,10 +359,11 @@ if __name__ =="__main__":
359
359
  ticker='CN'
360
360
  indicator="NY.GDP.MKTP.KN"
361
361
  indicator="GC.XPN.TOTL.GD.ZS"
362
+ indicator='NE.TRD.GNFS.ZS'
362
363
 
363
364
  indicator='GC.GDP.COMP.ZS' # 自制指标
364
365
 
365
- start='2010'; end='2025'; power=3
366
+ start='2015'; end='2025'; power=3
366
367
 
367
368
  zeroline=False
368
369
  attention_value=''; attention_value_area=''
@@ -451,12 +452,15 @@ def economy_indicator_wb(ticker='CN',indicator='NY.GDP.MKTP.KN', \
451
452
  pricetmp=pd.merge(pricetmp1,pricetmp2,how='inner',left_on=['country','year'],
452
453
  right_on=['country','year'])
453
454
  pricetmp[indicator]=pricetmp.apply(lambda x: round(x[indtmp1]/x[indtmp2]*100,2),axis=1)
454
- pricetmp['country']=pricetmp.index[0][0]
455
- pricetmp['year']=pricetmp.index
456
- pricetmp['year']=pricetmp['year'].apply(lambda x: x[1])
457
-
458
- pricedf=pricetmp[['country','year',indicator]]
459
- pricedf.reset_index(drop=True,inplace=True)
455
+ pricedf=pricetmp
456
+
457
+ # 分离出country和year字段
458
+ pricedf['country']=pricedf.index[0][0]
459
+ pricedf['year']=pricedf.index
460
+ pricedf['year']=pricedf['year'].apply(lambda x: x[1])
461
+
462
+ pricedf=pricedf[['country','year',indicator]]
463
+ pricedf.reset_index(drop=True,inplace=True)
460
464
 
461
465
  # 是否返回None
462
466
  if pricedf is None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: siat
3
- Version: 3.8.35
3
+ Version: 3.8.36
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
@@ -30,7 +30,7 @@ siat/cryptocurrency_test.py,sha256=3AikTNJ7j-HwLGLIYEfyXZ3bLVuLeru9mwiwHQi2SdA,2
30
30
  siat/derivative.py,sha256=qV8n09799eqLc26ojR6vN5n_X-xd7rGwdYjgq-wBih8,41483
31
31
  siat/economy-20230125.py,sha256=vxZZlPnLkh7SpGMVEPLwxjt0yYLSVmdZrO-s2NYLyoM,73848
32
32
  siat/economy.py,sha256=BFVQDxOTbuizyumpCgpZIauH6sqnwUXebpqRMmQCzys,84198
33
- siat/economy2.py,sha256=tdfbDXfv_rI4FjeQEgMwcKnoGNRL_1U2vkrnAPgRmAs,81019
33
+ siat/economy2.py,sha256=inmArHl43HFnSn6O4uY-xcsQY93IyMlFet3pQ7JpsjM,81089
34
34
  siat/economy_test.py,sha256=6vjNlPz7W125pJb7simCddobSEp3jmLIMvVkLRZ7zW8,13339
35
35
  siat/esg.py,sha256=GMhaonIKtvOK83rhpQUH5aJt2OL3HQBSVfD__Yw-0oo,19040
36
36
  siat/esg_test.py,sha256=Z9m6GUt8O7oHZSEG9aDYpGdvvrv2AiRJdHTiU6jqmZ0,2944
@@ -144,8 +144,8 @@ siat/valuation_china.py,sha256=eSKIDckyjG8QkENlW_OKkqbQHno8pzDcomBO9iGNJVM,83079
144
144
  siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
145
145
  siat/var_model_validation.py,sha256=R0caWnuZarrRg9939hxh3vJIIpIyPfvelYmzFNZtPbo,14910
146
146
  siat/yf_name.py,sha256=laNKMTZ9hdenGX3IZ7G0a2RLBKEWtUQJFY9CWuk_fp8,24058
147
- siat-3.8.35.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
148
- siat-3.8.35.dist-info/METADATA,sha256=3q8Ct67TlVKt9RRhekzd2I5JXTdrtUqT-4G62BkeH-I,8321
149
- siat-3.8.35.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
150
- siat-3.8.35.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
151
- siat-3.8.35.dist-info/RECORD,,
147
+ siat-3.8.36.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
148
+ siat-3.8.36.dist-info/METADATA,sha256=e4VCORGHR9rk7kDQKISHBuK7_TeZzGpi7M7ZaImKCu0,8321
149
+ siat-3.8.36.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
150
+ siat-3.8.36.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
151
+ siat-3.8.36.dist-info/RECORD,,
File without changes
File without changes