<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nishiohirokazu</author_name>
  <author_url>https://blog.hatena.ne.jp/nishiohirokazu/</author_url>
  <blog_title>西尾泰和のはてなダイアリー</blog_title>
  <blog_url>https://nishiohirokazu.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>NumPyではスライシングで特定の条件を満たす要素だけ選択できる。逆の条件で使えば特定の要素だけ除去するのも簡単。 &gt;&gt;&gt; array(range(5)) array([0, 1, 2, 3, 4]) &gt;&gt;&gt; v = _ &gt;&gt;&gt; v[v != 2] array([0, 1, 3, 4]) これは「v != 2」の部分で演算子がオーバーロードされていて、真偽値のarrayになっている。だからこれは他のarrayに対しても使える。 &gt;&gt;&gt; v != 2 array([ True, True, False, True, True], dtype=bool) &gt;&gt;&gt; randn(5) array([ …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnishiohirokazu.hatenadiary.org%2Fentry%2F20111118%2F1321611727&quot; title=&quot;NumPyで特定の条件を満たす行、列を除去する方法 - 西尾泰和のはてなダイアリー&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>2011-11-18 19:22:07</published>
  <title>NumPyで特定の条件を満たす行、列を除去する方法</title>
  <type>rich</type>
  <url>https://nishiohirokazu.hatenadiary.org/entry/20111118/1321611727</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
