BaşlayınÜcretsiz Başlayın

Finding Null values

In the previous exercise, you have observed how the two NULL data types None and the numpy not a number object np.nan behave with respect to arithmetic and logical operations. In this exercise, you'll further understand their behavior by comparing the two types. The numpy package has already been imported as np.

Bu egzersiz

Dealing with Missing Data in Python

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

try:
  # Print the comparison of two 'None's
  print("'None' comparison output: ", ___)

except TypeError:
  # Print if error
  print("'None' does not support this operation!!")
Kodu Düzenle ve Çalıştır