<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rare_Remrin</author_name>
  <author_url>https://blog.hatena.ne.jp/rare_Remrin/</author_url>
  <blog_title>Remrinのpython攻略日記</blog_title>
  <blog_url>https://python-remrin.hatenadiary.jp/</blog_url>
  <categories>
    <anon>numpy</anon>
    <anon>python</anon>
    <anon>ライブラリ</anon>
  </categories>
  <description>NumPyの構造化配列(structured array)について。 dtypeを自分で設定して、異なる型の変数を織り込める。 フィールド名で要素を参照できる。 dtype = [(&quot;x&quot;, int), (&quot;y&quot;, float)] a1 = np.array([(1, 2), (3, 4), (5, 6)], dtype=dtype) print(a1) # [(1, 2.0) (3, 4.0) (5, 6.0)] print(a1[&quot;x&quot;]) # [1 3 5 ] print(a1[&quot;y&quot;]) # [ 2. 4. 6.] フィールドのsizeを指定したりもできる。 dtype = [(&quot;x&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpython-remrin.hatenadiary.jp%2Fentry%2F2017%2F05%2F16%2F220938&quot; title=&quot;NumPyの使い方（１７）　構造化配列 - Remrinのpython攻略日記&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-05-16 22:09:38</published>
  <title>NumPyの使い方（１７）　構造化配列</title>
  <type>rich</type>
  <url>https://python-remrin.hatenadiary.jp/entry/2017/05/16/220938</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
