[Python] How to create numpy array with values in specific range?

Discussão em 'Python' iniciado por Stack, Novembro 28, 2024.

  1. Stack

    Stack Membro Participativo

    How can I create a numpy array which has values in a specific range. For instance only from 2 to 10! I know that np.arrange(10) will create an array with 10 values from 0 to 9 but not sure how to indicate that I want it to have values in a specific range. Any idea? Thanks in advance

    Continue reading...

Compartilhe esta Página