mns-common 1.3.4.3__py3-none-any.whl → 1.3.4.5__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.

Potentially problematic release.


This version of mns-common might be problematic. Click here for more details.

mns_common/__init__.py CHANGED
@@ -5,3 +5,9 @@ file_path = os.path.abspath(__file__)
5
5
  end = file_path.index('mns') + 14
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
+
9
+ import warnings
10
+ import pandas as pd
11
+
12
+ # 禁用 SettingWithCopyWarning
13
+ warnings.filterwarnings('ignore', category=pd.errors.SettingWithCopyWarning)
@@ -5,3 +5,8 @@ file_path = os.path.abspath(__file__)
5
5
  end = file_path.index('mns') + 14
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
+ import warnings
9
+ import pandas as pd
10
+
11
+ # 禁用 SettingWithCopyWarning
12
+ warnings.filterwarnings('ignore', category=pd.errors.SettingWithCopyWarning)
@@ -4,4 +4,10 @@ import os
4
4
  file_path = os.path.abspath(__file__)
5
5
  end = file_path.index('mns') + 14
6
6
  project_path = file_path[0:end]
7
- sys.path.append(project_path)
7
+ sys.path.append(project_path)
8
+
9
+ import warnings
10
+ import pandas as pd
11
+
12
+ # 禁用 SettingWithCopyWarning
13
+ warnings.filterwarnings('ignore', category=pd.errors.SettingWithCopyWarning)
@@ -102,7 +102,8 @@ def amend_ths_industry(real_time_quotes_now_init):
102
102
  na_industry_data = na_industry_data.loc[na_industry_data['amount'] != 0]
103
103
 
104
104
  real_time_quotes_now_result = pd.concat([real_time_quotes_now, na_industry_data], axis=0)
105
- real_time_quotes_now['mv_circulation_ratio'].fillna(1, inplace=True)
105
+ real_time_quotes_now.fillna({'connected_boards_numbers': 1}, inplace=True)
106
+
106
107
  # 处理na值
107
108
  real_time_quotes_now_result.fillna(0, inplace=True)
108
109
  return real_time_quotes_now_result
@@ -5,3 +5,8 @@ file_path = os.path.abspath(__file__)
5
5
  end = file_path.index('mns') + 14
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
+ import warnings
9
+ import pandas as pd
10
+
11
+ # 禁用 SettingWithCopyWarning
12
+ warnings.filterwarnings('ignore', category=pd.errors.SettingWithCopyWarning)
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns-common
3
- Version: 1.3.4.3
3
+ Version: 1.3.4.5
4
4
 
@@ -1,5 +1,5 @@
1
- mns_common/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
2
- mns_common/api/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
1
+ mns_common/__init__.py,sha256=ZQmo83Xgfj7Y4LgNlBr3pwmtgAKZpunU18A9-wvYoPI,316
2
+ mns_common/api/__init__.py,sha256=JcWMR8u8uXDKQQ_rm1sKVFMz1_Wd-Na2Hxxhz6MaTsk,314
3
3
  mns_common/api/akshare/__init__.py,sha256=xu36nA6MJTauswUWPfKIKH0E-lpOAHTw2TL5QI_6TeY,165
4
4
  mns_common/api/akshare/k_line_api.py,sha256=Kl0KIjqQ7GWD2624M18KiU8YkeAt5_udODIGpuvPBFU,6138
5
5
  mns_common/api/akshare/stock_bid_ask_api.py,sha256=lDDTKWRyL5yc3HrxhW_cBW8y7yhFFBqyuOZjhyJUP5k,8170
@@ -65,7 +65,7 @@ mns_common/api/ths/zt/ths_stock_zt_pool_api.py,sha256=GIYdc5J7ZrV25Elbf0n3bBZOc7
65
65
  mns_common/api/ths/zt/ths_stock_zt_pool_v2_api.py,sha256=ohkeXyUSvxie2YqFPxqy9eLAHyFKQ5nx9U0JcR5LKeQ,16349
66
66
  mns_common/api/us/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
67
67
  mns_common/api/us/ths_us_company_info_api.py,sha256=qQjv4F-ovQ2uuu-FlBAnxjvVA7qj9y_x5WZtUoyoEW4,241
68
- mns_common/component/__init__.py,sha256=8b2PuXJM5fLoq71cWPXp695czQuaRtyR6OVHajGjDPc,161
68
+ mns_common/component/__init__.py,sha256=ZQmo83Xgfj7Y4LgNlBr3pwmtgAKZpunU18A9-wvYoPI,316
69
69
  mns_common/component/common_service_fun_api.py,sha256=3wlD3FlZ8W5X6indKZIX-ol48xNZX_UmeLnDxP10vvA,5221
70
70
  mns_common/component/cache/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
71
71
  mns_common/component/cache/cache_service.py,sha256=QX7tjR1iGsoCyGt6O41w8aRbZ-3xXQ-53Ps3nmUzAGQ,809
@@ -74,7 +74,7 @@ mns_common/component/classify/symbol_classify_api.py,sha256=fwT2qM-F-eADOtUeRgyq
74
74
  mns_common/component/classify/symbol_classify_param.py,sha256=ZOXoZeZ2grVACrpRCQyTF6_NEI9fI-tspYj7jubnkmc,1356
75
75
  mns_common/component/company/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
76
76
  mns_common/component/company/company_common_service_api.py,sha256=pqb11v5y0uFWJtqA7K-AMf6hzyrFUq_OVpvr7uaWOow,8252
77
- mns_common/component/company/company_common_service_new_api.py,sha256=sYJlofNUAa6AhvMvYIl_v1TA9N5ZAYwsoWRddB-9k4A,5585
77
+ mns_common/component/company/company_common_service_new_api.py,sha256=3TSmAIO4j9S26MPmDNx-2wXztBToULbwNSmbayb_v3U,5593
78
78
  mns_common/component/concept/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
79
79
  mns_common/component/concept/kpl_concept_common_service_api.py,sha256=tagVanuIwcJxBuesFAciiS5kOz7a89gaugnDbp9D0ds,3286
80
80
  mns_common/component/concept/ths_concept_common_service_api.py,sha256=yU-DU5gFHYYKNYqhgXpOBC54lsAbcIl7YdyyOFmlpLo,11662
@@ -115,7 +115,7 @@ mns_common/component/trade_date/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1Qg
115
115
  mns_common/component/trade_date/trade_date_common_service_api.py,sha256=PHrcUjgLdNKbqyMGot0poKtiLBys_wRZoheMhPJE-U4,3032
116
116
  mns_common/component/zt/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
117
117
  mns_common/component/zt/zt_common_service_api.py,sha256=6pHRLLJjKcLLBA-xXkAU8SE6DZ5dgVFBRVjJmhkL0II,11945
118
- mns_common/constant/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
118
+ mns_common/constant/__init__.py,sha256=JcWMR8u8uXDKQQ_rm1sKVFMz1_Wd-Na2Hxxhz6MaTsk,314
119
119
  mns_common/constant/black_list_classify_enum.py,sha256=I8U_DcltzYvlWjgn-TFLImgVgPuO0lxMnEJAQJBljdo,3995
120
120
  mns_common/constant/db_name_constant.py,sha256=Hnj3ORT6wsDl2BOANtpg9kZi1rhS6c-osJ2jqZPyKUQ,4142
121
121
  mns_common/constant/east_money_stock_api.py,sha256=mW0b8sEgkf8WJtars2frOQYzsWgjIl4FDYEwcCcCSZY,7557
@@ -136,7 +136,7 @@ mns_common/utils/date_handle_util.py,sha256=XS-MyA8_7k35LOCFAYOHgVcVkMft_Kc4Wa9U
136
136
  mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
137
137
  mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
138
138
  mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
139
- mns_common-1.3.4.3.dist-info/METADATA,sha256=fkJkCKtxt3Ok3CqVvl-VCl5naOIyLhpetSl-Tskn3uU,61
140
- mns_common-1.3.4.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
141
- mns_common-1.3.4.3.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
142
- mns_common-1.3.4.3.dist-info/RECORD,,
139
+ mns_common-1.3.4.5.dist-info/METADATA,sha256=cstjeJIqoTsjz0v7KzC2JyI5ZOufQnILYBxbg8CqP8w,61
140
+ mns_common-1.3.4.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
141
+ mns_common-1.3.4.5.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
142
+ mns_common-1.3.4.5.dist-info/RECORD,,