<?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>ライブラリ</anon>
    <anon>python</anon>
  </categories>
  <description>NumPyの形状変換と転置について。 reshape()、resize() タプルでshapeを指定して形状を変換する。 変換前後で全要素数が一致しないときはValueError -1を指定した軸はNumPyが自動で判断。 もとの配列を参照を得るので、値変更は元の配列に及ぶ。 np.resize()だと、コピーを取得するので、値変更をしても元の配列は保存される。 np.resize()は総要素数が増えた場合は値を繰り返して埋める。 ndarray.resize()は総要素数が増えたときはゼロで埋める。 import numpy as np a1 = np.array(range(12)) pr…</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%2F10%2F183809&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>https://cdn-ak.f.st-hatena.com/images/fotolife/r/rare_Remrin/20170513/20170513132338.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-05-10 18:38:09</published>
  <title>NumPyの使い方（４）　形状変換と転置</title>
  <type>rich</type>
  <url>https://python-remrin.hatenadiary.jp/entry/2017/05/10/183809</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
