<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yoshitaku_jp</author_name>
  <author_url>https://blog.hatena.ne.jp/yoshitaku_jp/</author_url>
  <blog_title>よしたく blog</blog_title>
  <blog_url>https://yoshitaku-jp.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>Pandas</anon>
  </categories>
  <description>Pandasで欠損値を埋めるための方法をいくつか確認したのでまとめておく。fillna関数を使うと引数に渡した値で、NaNを埋められる。 まずは適当にNaNを含んだデータを生成する。 import numpy as np import pandas as pd df = pd.DataFrame(data=[1,2,4,np.nan,5,8,7,np.nan], columns=['col_nan']) df index col_nan 0 1.0 1 2.0 2 4.0 3 NaN 4 5.0 5 8.0 6 7.0 7 NaN ゼロで埋める fillna関数を使うと引数に渡したもので、Na…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyoshitaku-jp.hatenablog.com%2Fentry%2F2022%2F07%2F17%2F233000&quot; title=&quot;Pandasで欠損値を埋めるための方法 - よしたく blog&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>2022-07-17 23:30:00</published>
  <title>Pandasで欠損値を埋めるための方法</title>
  <type>rich</type>
  <url>https://yoshitaku-jp.hatenablog.com/entry/2022/07/17/233000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
