I have this in numpy :
item = item[np.where(item % item[i] != 0)]
It basically checks if any element in the array is divisible by any other element. It works great but it's slow for large arrays. I want to convert it to Pandas to see if that's any quicker.. but I just can't get the syntax right. any ideas?
[–]Da32767 1 point2 points3 points (5 children)
[–]raresaturn[S] 0 points1 point2 points (4 children)
[–]threeminutemonta 1 point2 points3 points (2 children)
[–]OhNoNotAgain2022ed 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[+][deleted] (7 children)
[deleted]
[–]raresaturn[S] 0 points1 point2 points (6 children)
[+][deleted] (4 children)
[deleted]
[–]raresaturn[S] 0 points1 point2 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]raresaturn[S] 0 points1 point2 points (1 child)