[Python] How to remove all rows in a numpy.ndarray that contain non-numeric values

Discussão em 'Python' iniciado por Stack, Março 15, 2025.

  1. Stack

    Stack Membro Participativo

    I read in a dataset as a numpy.ndarray and some of the values are missing (either by just not being there, being NaN, or by being a string written "NA").

    I want to clean out all rows containing any entry like this. How do I do that with a numpy ndarray?

    Continue reading...

Compartilhe esta Página