init
This commit is contained in:
@@ -228,7 +228,7 @@ if __name__ == "__main__":
|
|||||||
stockFileName = os.path.join(RESOURCE_PATH, 'stock.db')
|
stockFileName = os.path.join(RESOURCE_PATH, 'stock.db')
|
||||||
|
|
||||||
stockPriceDirectionAnalyzer = StockPriceDirectionAnalyzer(stockFileName)
|
stockPriceDirectionAnalyzer = StockPriceDirectionAnalyzer(stockFileName)
|
||||||
corr_scores = stockPriceDirectionAnalyzer.analyze(master_code='252670')
|
corr_scores = stockPriceDirectionAnalyzer.analyze(master_code='122630')
|
||||||
corr_scores_list = sorted(corr_scores.items(), key=lambda item: item[1], reverse=True)
|
corr_scores_list = sorted(corr_scores.items(), key=lambda item: item[1], reverse=True)
|
||||||
for item in corr_scores_list:
|
for item in corr_scores_list:
|
||||||
print("%s %4.3f" % (item[0], item[1]))
|
print("%s %4.3f" % (item[0], item[1]))
|
||||||
|
|||||||
Reference in New Issue
Block a user