MCPcopy
hub / github.com/microsoft/qlib / test_3_dump_features

Method test_3_dump_features

tests/test_dump_data.py:70–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68 assert len(ori_ins - res_ins) == len(ori_ins - res_ins) == 0, "dump instruments failed"
69
70 def test_3_dump_features(self):
71 df = D.features(self.STOCK_NAMES, self.QLIB_FIELDS)
72 TestDumpData.SIMPLE_DATA = df.loc(axis=0)[self.STOCK_NAMES[0], :]
73 self.assertFalse(df.dropna().empty, "features data failed")
74 self.assertListEqual(list(df.columns), self.QLIB_FIELDS, "features columns failed")
75
76 def test_4_dump_features_simple(self):
77 stock = self.STOCK_NAMES[0]

Callers

nothing calls this directly

Calls 2

featuresMethod · 0.80
locMethod · 0.45

Tested by

no test coverage detected