1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-06-06 05:51:17 +08:00

Fix deprecated syntax in numpy (#1507)

* Fix deprecated syntax in numpy

* Replace np.bool with bool
This commit is contained in:
Chaoying
2023-05-08 16:17:02 +08:00
committed by GitHub
parent b084c352f5
commit 37a59f28d3
3 changed files with 3 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ class IndexDataTest(unittest.TestCase):
self.assertTrue(np.isnan(sd.loc["bar", "g"]))
# support slicing
print(sd.loc[~sd.loc[:, "g"].isna().data.astype(np.bool)])
print(sd.loc[~sd.loc[:, "g"].isna().data.astype(bool)])
print(self.assertTrue(idd.SingleData().index == idd.SingleData().index))