<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nainaistar</author_name>
  <author_url>https://blog.hatena.ne.jp/nainaistar/</author_url>
  <blog_title>きり丸の技術日記</blog_title>
  <blog_url>https://nainaistar.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>技術</anon>
  </categories>
  <description>始めに ※ 自宅で再現しなかったので、そういう事象が発生したということをメモするだけの記事。 FastAPIでアップロードされたCSVをもとに登録する処理を作っていました。そして、特定の条件でエラーになることに気づきました。しかし、エラーが発生行を確認しているとINSERT や UPDATEではなく、SELECTしたタイミングでエラーになっていることがわかりました。 今回の記事では、回避した方法を残します。 環境 Python SQLAlchemy MySQL ※ 再現しなかったのでバージョン不明 実装 特定の条件で発生していたエラーはnp.nanのパラメータを検索で使用していた時に発生してい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnainaistar.hatenablog.com%2Fentry%2Fnp-nan-error-in-search&quot; title=&quot;np.nanをNoneに変換しないとDBアクセス時にエラーになることがある - きり丸の技術日記&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>https://cdn-ak.f.st-hatena.com/images/fotolife/n/nainaistar/20250628/20250628135244.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-06-30 12:00:00</published>
  <title>np.nanをNoneに変換しないとDBアクセス時にエラーになることがある</title>
  <type>rich</type>
  <url>https://nainaistar.hatenablog.com/entry/np-nan-error-in-search</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
