<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anton0825</author_name>
  <author_url>https://blog.hatena.ne.jp/anton0825/</author_url>
  <blog_title>日々精進</blog_title>
  <blog_url>https://anton0825.hatenablog.com/</blog_url>
  <categories>
    <anon>AI</anon>
  </categories>
  <description>現象は以下。 TitanicのtrainデータのAgeの欠損値を22.0で埋める pd.qcut(train[&quot;Age&quot;], 4, duplicates=&quot;drop&quot;).value_counts() を実行すると以下のようになり、要素数にかなり偏りができる (0.419, 22.0] 408 (24.0, 35.0] 220 (35.0, 80.0] 217 (22.0, 24.0] 46 Name: Age, dtype: int64 「境界値をずらすともっと偏るのでしょうが無い」という状況なのかなと思いきや、そうでもなく、例えば以下の方が良い分割方法のように見える。 pd.qcut(tra…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanton0825.hatenablog.com%2Fentry%2F2017%2F01%2F29%2F000000&quot; title=&quot;pandas.qcutはcutする列の値に重複があると挙動がおかしくなることがある - 日々精進&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>2017-01-29 00:00:00</published>
  <title>pandas.qcutはcutする列の値に重複があると挙動がおかしくなることがある</title>
  <type>rich</type>
  <url>https://anton0825.hatenablog.com/entry/2017/01/29/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
