<?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>
  </categories>
  <description>pandas で df[df[列番号]==数値] と df[df[列番号].isin([数値])] のどちらが速いか（数値編） - ablog の文字列版。 サマリー 14MBの CSV ファイルを読んで 1,000 回 df[df[列番号]=='文字列'] または df[df[列番号].isin(['文字列'])] の実行時間を計測すると、isin のほうが 4.599s（=8.057s-3.458s）速い結果になった。cProfile でプロファイリングすると df[df[列番号]=='文字列'] の場合、pandas._libs.ops.scalar_compare で 79%（6.37…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohei-a.hatenablog.jp%2Fentry%2F20231012%2F1697086594&quot; title=&quot;pandas で df[df[列番号]==&amp;#39;文字列&amp;#39;] と df[df[列番号].isin([&amp;#39;文字列&amp;#39;])] のどちらが速いか（文字列編） - 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-12 13:56:34</published>
  <title>pandas で df[df[列番号]=='文字列'] と df[df[列番号].isin(['文字列'])] のどちらが速いか（文字列編）</title>
  <type>rich</type>
  <url>https://yohei-a.hatenablog.jp/entry/20231012/1697086594</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
