title: How to change dtype of array of objects to string
body: <p>My question is similar to this question <a href="https://stackoverflow.com/questions/46759801/how-to-solve-the-attributeerrorlist-object-has-no-attribute-astype/65499715?noredirect=1#comment115801323_65499715">How to solve the AttributeError:&#39;list&#39; object has no attribute &#39;astype&#39;?</a>
  however, I'm trying to create a series of strings, in order to plot in graph.</p>
  <pre><code> feature_names = df.iloc[:,maxIndex].columns
   newMaxName.append(feature_names)
   newMaxName = np.array(newMaxName, dtype =np.str)
   newMaxName
  </code></pre>
  <p>so it gives me output as</p>
  <blockquote>
  <p>array(['shar', 'dec', 'intel', 'like', 'amb', 'met', 'pid', 'prob_o',
  'pf_o_sin', 'pf_o_att', 'pf_o_sha', 'pf_o_fun', 'age_o',
  'pf_o_amb', 'pf_o_int', 'attr_o', 'attr', 'attr2_1', 'sinc',
  'shar1_1', 'shar_o', 'amb_o', 'intel1_1', 'attr1_1', 'fun_o'],
  dtype='&lt;U8')</p>
  </blockquote>
  <p>I want them to be string how can I convert them?</p>