IniziaInizia gratis

Getting help

You'll need to use the .astype() array method we covered in the first chapter of this course for the next exercise. If you forget exactly how .astype() works, you could check out the course slides or NumPy's documentation on numpy.org. There is, however, an even faster way to jog your memory…

numpy is loaded as np.

Questo esercizio fa parte del corso

Introduction to NumPy

Visualizza il corso

Istruzioni dell'esercizio

  • Return NumPy's documentation text for .astype().

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Display the documentation for .astype()
____
Modifica ed esegui il codice