Feb-07-2020, 04:04 PM
(Feb-07-2020, 03:45 PM)paul18fr Wrote: Hi
My advice is by:
- creating an array with all the numbers
- using the modulo property (see numpy.mod) by an additional column
- then looking for values where the rest is equal to zero (see numpy.where)
- and finally deleting the corresponding rows (see numpy.delete)
Paul
Hi Paul,
When trying to use numpy.mod I get the following error
TypeError: ufunc 'remainder' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
can you provide any solutions for this? I am new to using python so appreciate any and all help.
Thanks.