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:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user