<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tiginkgo</author_name>
  <author_url>https://blog.hatena.ne.jp/tiginkgo/</author_url>
  <blog_title>初心者のためのpython入門</blog_title>
  <blog_url>https://tiginkgo.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>前書き 久しぶりの更新になりました。 今回は、変数の値がnumpy.nanか判定する方法を紹介していきます。 方法はいくつかありますが、その中でもわかりやすいものを2つ紹介します。 math.isnan intやfloatを扱うことができますが、listやnumpy.array、tupleなどを扱うことはできません。 &gt;&gt;&gt; import numpy as np &gt;&gt;&gt; import math &gt;&gt;&gt; value = np.nan &gt;&gt;&gt; math.isnan(value) True &gt;&gt;&gt; values = [1, np.nan, 3] &gt;&gt;&gt; math.isnan(values) Trac…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftiginkgo.hateblo.jp%2Fentry%2F20211109%2F1636423289&quot; title=&quot;numpy.nanをcheck! - 初心者のためのpython入門&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-11-09 11:01:29</published>
  <title>numpy.nanをcheck!</title>
  <type>rich</type>
  <url>https://tiginkgo.hateblo.jp/entry/20211109/1636423289</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
