mns-common 1.2.7.6__py3-none-any.whl → 1.2.7.8__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/component/concept/ths_concept_common_service_api.py +7 -1
- {mns_common-1.2.7.6.dist-info → mns_common-1.2.7.8.dist-info}/METADATA +1 -1
- {mns_common-1.2.7.6.dist-info → mns_common-1.2.7.8.dist-info}/RECORD +5 -5
- {mns_common-1.2.7.6.dist-info → mns_common-1.2.7.8.dist-info}/WHEEL +0 -0
- {mns_common-1.2.7.6.dist-info → mns_common-1.2.7.8.dist-info}/top_level.txt +0 -0
|
@@ -61,6 +61,8 @@ def set_ths_concept(symbol, df):
|
|
|
61
61
|
df['ths_concept_name'] = "未有"
|
|
62
62
|
df['ths_concept_code'] = 0
|
|
63
63
|
df['ths_concept_sync_day'] = "1989-07-29"
|
|
64
|
+
# 有效数量
|
|
65
|
+
df['ths_concept_count'] = 0
|
|
64
66
|
|
|
65
67
|
df['ths_concept_list_info'] = "-"
|
|
66
68
|
|
|
@@ -76,7 +78,7 @@ def set_ths_concept(symbol, df):
|
|
|
76
78
|
if data_frame_util.is_not_empty(ths_stock_concept_detail):
|
|
77
79
|
ths_stock_concept_detail['concept_name_str'] = ths_stock_concept_detail['concept_name']
|
|
78
80
|
df_unique = ths_stock_concept_detail['concept_name_str'].drop_duplicates()
|
|
79
|
-
concept_name_str = ','.join(df_unique
|
|
81
|
+
concept_name_str = ','.join(df_unique)
|
|
80
82
|
|
|
81
83
|
ths_stock_concept_detail = ths_stock_concept_detail[[
|
|
82
84
|
'concept_code',
|
|
@@ -95,6 +97,10 @@ def set_ths_concept(symbol, df):
|
|
|
95
97
|
|
|
96
98
|
ths_stock_concept_detail_effective = ths_stock_concept_detail.loc[
|
|
97
99
|
ths_stock_concept_detail['concept_code'].isin(ths_effective_concept_code_list)]
|
|
100
|
+
ths_concept_count = ths_stock_concept_detail_effective.shape[0]
|
|
101
|
+
|
|
102
|
+
df.loc[:, 'ths_concept_count'] = ths_concept_count
|
|
103
|
+
|
|
98
104
|
if data_frame_util.is_empty(ths_stock_concept_detail_effective):
|
|
99
105
|
return df
|
|
100
106
|
# 最新概念设置
|
|
@@ -69,7 +69,7 @@ mns_common/component/company/company_common_service_api.py,sha256=pqb11v5y0uFWJt
|
|
|
69
69
|
mns_common/component/company/company_common_service_new_api.py,sha256=dKh633fEsZm7KbUviUmqZFRUwjxyLTu-Y23ItTBsK60,5075
|
|
70
70
|
mns_common/component/concept/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
|
|
71
71
|
mns_common/component/concept/kpl_concept_common_service_api.py,sha256=Ruc3INOhVjB0X1LeMRX0zL3uhv9OLweG2hj6wkZffow,3235
|
|
72
|
-
mns_common/component/concept/ths_concept_common_service_api.py,sha256=
|
|
72
|
+
mns_common/component/concept/ths_concept_common_service_api.py,sha256=ik_3T0oWtyTWYOSjmSEGrcd32DsvoHqiEYeGDMLIRRg,10270
|
|
73
73
|
mns_common/component/cookie/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
|
|
74
74
|
mns_common/component/cookie/cookie_info_service.py,sha256=IIFKj84dnBrUOt2Wl6kbCj-BDdFX_X9z8IIk4LxLNTc,754
|
|
75
75
|
mns_common/component/data/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
|
|
@@ -124,7 +124,7 @@ mns_common/utils/date_handle_util.py,sha256=qkEyKLYiVq6qpKVp32MLKwRtGKVBK6AY5at2
|
|
|
124
124
|
mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
|
|
125
125
|
mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
|
|
126
126
|
mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
|
|
127
|
-
mns_common-1.2.7.
|
|
128
|
-
mns_common-1.2.7.
|
|
129
|
-
mns_common-1.2.7.
|
|
130
|
-
mns_common-1.2.7.
|
|
127
|
+
mns_common-1.2.7.8.dist-info/METADATA,sha256=JUTosn6hvHPiDGSVXd9TVhd3slbcWQAZQZ_TIULAAag,61
|
|
128
|
+
mns_common-1.2.7.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
129
|
+
mns_common-1.2.7.8.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
|
|
130
|
+
mns_common-1.2.7.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|