<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>PageTAKA</author_name>
  <author_url>https://blog.hatena.ne.jp/PageTAKA/</author_url>
  <blog_title>pagetakaBlog</blog_title>
  <blog_url>https://pagetaka.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>PC、ネット、情報端末</anon>
  </categories>
  <description>前説：株式約定の無い項目をどうするか…。 欠損値を含むCD取得し同CDを含む全行削除の流れ。 Pythonスクリプト 関門：an_np_array = df[df['z'].isna()]['CD'].unique()、df_no_z_nan = df[~df['CD'].isin(an_np_array)] ’’、None、NaN、'\x00'、など欠損値の扱いは面倒ですね。 見出しで意味が通じていますでしょうか…不安。 【DataFrame特定項に欠損値のある行のCDと同じCD行全削除】今回は、データフレームz項をターゲットにして、欠損値になっていたらそのCDを取得後、重複排除し、データフ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpagetaka.hatenablog.jp%2Fentry%2F2025%2F02%2F12%2F120845&quot; title=&quot;Python修行：DataFrame特定項に欠損値のある行のCDと同じCD行全削除【スクリプト付き】 - pagetakaBlog&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/P/PageTAKA/20250212/20250212111955.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-02-12 12:08:45</published>
  <title>Python修行：DataFrame特定項に欠損値のある行のCDと同じCD行全削除【スクリプト付き】</title>
  <type>rich</type>
  <url>https://pagetaka.hatenablog.jp/entry/2025/02/12/120845</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
