https://researchdatapod.com/how-to-solve-typeerror-cannot-perform-rand_-with-a-dtyped-object-array-and-scalar-of-type-bool/
How to Solve TypeError: Cannot perform 'rand_' with a dtyped [object] array and scalar of type [bool]