<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Accent</author_name>
  <author_url>https://blog.hatena.ne.jp/Accent/</author_url>
  <blog_title>強弱と高低</blog_title>
  <blog_url>https://accent.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python3</anon>
    <anon>pandas</anon>
  </categories>
  <description>やりたいこと ある巨大行列のなかで、特定の列の値がXである行を抽出する。そしてさらに利用する列を指定する。 コード import pandas as pd df = pd.read_csv(&quot;test.csv&quot;, header=None) df[df[2] == X].ix[:,5:90] df[2] == Xが第２列の値がXである行を抽出してくれる。 更に加えて、.ix[;5:8]をすることで抽出した行の中から５列から７列目までの列を取り出してくれる。 とても便利ですねpandas</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faccent.hatenablog.jp%2Fentry%2F2016%2F08%2F11%2F125208&quot; title=&quot;pandasで条件にあった行を抽出してさらに列を指定する - 強弱と高低&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>2016-08-11 12:52:08</published>
  <title>pandasで条件にあった行を抽出してさらに列を指定する</title>
  <type>rich</type>
  <url>https://accent.hatenablog.jp/entry/2016/08/11/125208</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
