Open khusmann opened 1 year ago
Describe the bug Series.loc can accept a series of bools, but this is not reflected in the type signature.
This shows a type error in VSCode:
const dfd = require("danfojs-node") let s = new dfd.Series([12, 34, 2.2, 2, 30, 30, 2.1, 7]) s.loc(s.gt(20)).print()
Error:
Argument of type 'Series' is not assignable to parameter of type '(string | number | boolean)[]'
Expected behavior No type errors :)
Describe the bug Series.loc can accept a series of bools, but this is not reflected in the type signature.
This shows a type error in VSCode:
Error:
Expected behavior No type errors :)