# 用Python分析公开数据选出高送转预期股票-数据分析-Crossin的编程教室

1. 选股信条

we的所有格形式如今只思索每股公积金、每股进项、流动资本四首要的与推销总评价，公积金大于平等的5元，每股进项很大于平等的5毛，流通时间首都的3亿元以下，总市值在100亿里边作为高送转预期目的（这些决定首要的每个人可依据本人的发现恣意调停）。

2. 知识预备

1. # 基面知识
2. basic = ()
3. # 推销和推销评价知识
4. hq = ()

3. 知识排和排

1. 以后股价,是否设置了使镇静，则为上一个人市设置以后价钱。
2. 指挥部[通信量] = （lambda x:x.settlement if x.trade==0 else x.trade, axis=1)
3. 独立流通时间股,总首都的,每股公积金,每股进项
4. basedata = 根本[未加工], '翻阅', ”reservedPerShare”, ”esp”]]
5. 选择的股本信号,名字,以后价钱,总市值,流通时间市值
6. hqdata = 指挥部[信号], ”name”, '市', ”mktcap”, ”nmc”]]
7. 设置关键列的推销知识信号
8. hqdata = （‘信号’）
9. 兼并两个知识表
10. data = (hqdata, left_index=True, right_index=True) 4. 选股期限

1. 将流通时间总市值和推销评价替换为billi
2. data[”mktcap”] = data[”mktcap”] / 10000
3. 知识['nmc'] = 知识['nmc'] / 10000

1. 每股公积金<=5
2. res = data.reservedPerShare <= 5
3. 流动资本>=3 bilio
4. out = data.outstanding >= 30000
5. #每股进项<=5毛
6. eps = data.esp <= 0.5
7. 总市值>100 billio
8. mktcap = data.mktcap >= 100

1. allcrit = res & out & eps & mktcap
2. selected = data[allcrit]
{"ft_lang_label":"__label__zh","ft_lang_prob":0.7430316,"math_prob":0.99845594,"size":1555,"snap":"2019-35-2019-39","text_gpt3_token_len":1315,"char_repetition_ratio":0.088974856,"word_repetition_ratio":0.0,"special_character_ratio":0.28038585,"punctuation_ratio":0.14691943,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95671755,"pos_list":[0,1,2,3,4,5,6],"im_url_duplicate_count":[null,7,null,7,null,7,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-19T02:15:15Z\",\"WARC-Record-ID\":\"<urn:uuid:b63eff9e-037d-405c-a12c-66cfc408949c>\",\"Content-Length\":\"23526\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:584dd72a-aa8f-46cc-849a-3f535b2a7782>\",\"WARC-Concurrent-To\":\"<urn:uuid:4d565879-b7cf-46ce-8a9d-1db84a50a64a>\",\"WARC-IP-Address\":\"107.165.60.168\",\"WARC-Target-URI\":\"https://www.starmwi.com/ampjdc/5180.html\",\"WARC-Payload-Digest\":\"sha1:YUTCPLM3BSAZUHMWA74RLEC6RMR24I6F\",\"WARC-Block-Digest\":\"sha1:73A4MVVKZXTSANDANRARFGAKHHB23Q3T\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514573415.58_warc_CC-MAIN-20190919015534-20190919041534-00385.warc.gz\"}"}