MulaiMulai sekarang secara 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.

Latihan ini adalah bagian dari kursus

Introduction to NumPy

Lihat Kursus

Petunjuk latihan

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

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Display the documentation for .astype()
____
Edit dan Jalankan Kode