1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-07 13:00:58 +08:00

fix sum index data bug

This commit is contained in:
Young
2021-09-02 00:45:04 +00:00
parent f71b0c1189
commit 88d2f9263e
3 changed files with 4 additions and 2 deletions

View File

@@ -107,6 +107,8 @@ class IndexDataTest(unittest.TestCase):
self.assertTrue(np.isnan((sd1 + sd2).iloc[3]))
self.assertTrue(sd1.add(sd2).sum() == 13)
self.assertTrue(idd.sum_by_index([sd1, sd2], sd1.index, fill_value=0.0).sum() == 13)
def test_todo(self):
pass
# here are some examples which do not affect the current system, but it is weird not to support it