<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yohei-a</author_name>
  <author_url>https://blog.hatena.ne.jp/yohei-a/</author_url>
  <blog_title>ablog</blog_title>
  <blog_url>https://yohei-a.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>Pandas</anon>
  </categories>
  <description>サマリー 14MBの CSV ファイルを読んで 1,000 回 df[df[列番号]==数値] または df[df[列番号].isin([数値])] の実行時間を計測すると、isin のほうが 0.875s（=3.131s-2.256s）遅い結果になった。cProfile でプロファイリングすると df[df[列番号]==数値] の場合、algorithms.py#isin で時間を消費している。次点の pandas._libs.algos.take_2d_axis1_object_object や method 'read_low_memory' of 'pandas._libs.parse…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohei-a.hatenablog.jp%2Fentry%2F20231011%2F1697019765&quot; title=&quot;pandas で df[df[列番号]==数値] と df[df[列番号].isin([数値])] のどちらが速いか（数値編） - ablog&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>2023-10-11 19:22:45</published>
  <title>pandas で df[df[列番号]==数値] と df[df[列番号].isin([数値])] のどちらが速いか（数値編）</title>
  <type>rich</type>
  <url>https://yohei-a.hatenablog.jp/entry/20231011/1697019765</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
