<p dir="auto">When creat a array with set the dtype , the array just lost the columns which the dtype is numpy.string_,numpy.str,numpy.str_,numpy.str0 .<br>
And when i change 'string_' to '&lt;U1' ,that will work .</p>
<h3 dir="auto">Reproducing code example:</h3>

<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
&lt;&lt; your code here &gt;&gt;
b = np.array([('a',1,2),(3,4,5),(6,7,8)], dtype=([('name','string_'),('age','int8'),('salary','float32')]))
a = np.array([('a',1,2),(3,4,5),(6,7,8)], dtype=([('name','&lt;U1'),('age','int8'),('salary','float32')]))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-c1">&lt;&lt;</span> <span class="pl-s1">your</span> <span class="pl-s1">code</span> <span class="pl-s1">here</span> <span class="pl-c1">&gt;&gt;</span>
<span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([(<span class="pl-s">'a'</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>),(<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">5</span>),(<span class="pl-c1">6</span>,<span class="pl-c1">7</span>,<span class="pl-c1">8</span>)], <span class="pl-s1">dtype</span><span class="pl-c1">=</span>([(<span class="pl-s">'name'</span>,<span class="pl-s">'string_'</span>),(<span class="pl-s">'age'</span>,<span class="pl-s">'int8'</span>),(<span class="pl-s">'salary'</span>,<span class="pl-s">'float32'</span>)]))
<span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([(<span class="pl-s">'a'</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>),(<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">5</span>),(<span class="pl-c1">6</span>,<span class="pl-c1">7</span>,<span class="pl-c1">8</span>)], <span class="pl-s1">dtype</span><span class="pl-c1">=</span>([(<span class="pl-s">'name'</span>,<span class="pl-s">'&lt;U1'</span>),(<span class="pl-s">'age'</span>,<span class="pl-s">'int8'</span>),(<span class="pl-s">'salary'</span>,<span class="pl-s">'float32'</span>)]))</pre></div>

<h3 dir="auto">Error message:</h3>


<h3 dir="auto">Numpy/Python version information:</h3>

<p dir="auto">1.15.0 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 11:27:44) [MSC v.1900 64 bit (AMD64)]</p>
<p dir="auto">Example:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; dt = np.dtype([('f', float), ('s', str)])
&gt;&gt;&gt; np.array([(1.0, &quot;hello world&quot;)], dt)
array([(1.0, '')], 
      dtype=[('f', '&lt;f8'), ('s', 'S')])"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">dt</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">dtype</span>([(<span class="pl-s">'f'</span>, <span class="pl-s1">float</span>), (<span class="pl-s">'s'</span>, <span class="pl-s1">str</span>)])
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([(<span class="pl-c1">1.0</span>, <span class="pl-s">"hello world"</span>)], <span class="pl-s1">dt</span>)
<span class="pl-en">array</span>([(<span class="pl-c1">1.0</span>, <span class="pl-s">''</span>)], 
      <span class="pl-s1">dtype</span><span class="pl-c1">=</span>[(<span class="pl-s">'f'</span>, <span class="pl-s">'&lt;f8'</span>), (<span class="pl-s">'s'</span>, <span class="pl-s">'S'</span>)])</pre></div>
<p dir="auto">Proposal: This should either resize or raise a ValueError (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="223359260" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/8970" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/8970/hovercard" href="https://github.com/numpy/numpy/pull/8970">#8970</a>), as it seems like it would always mask bugs</p>