[Python] NumPy array is not JSON serializable

Discussão em 'Python' iniciado por Stack, Janeiro 31, 2025.

  1. Stack

    Stack Membro Participativo

    After creating a NumPy array, and saving it as a Django context variable, I receive the following error when loading the webpage:

    array([ 0, 239, 479, 717, 952, 1192, 1432, 1667], dtype=int64) is not JSON serializable


    What does this mean?

    Continue reading...

Compartilhe esta Página