Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tut] numpy.char.capitalize

#1
numpy.char.capitalize

<div><pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">numpy.char.capitalize(a)</pre>
<p><a href="https://numpy.org/doc/stable/reference/generated/numpy.char.capitalize.html#numpy.char.capitalize" target="_blank" rel="noreferrer noopener" title="https://numpy.org/doc/stable/reference/generated/numpy.char.capitalize.html#numpy.char.capitalize"><em>Original Documentation</em></a></p>
<p>Return a copy of <em>a</em> with only the first character of each element capitalized.</p>
<p>Calls <em>str.capitalize</em> element-wise.</p>
<p>For 8-bit strings, this method is locale-dependent. </p>
<p><strong>Parameters:</strong></p>
<ul>
<li><strong>a: <em>array_like of str or unicode</em></strong>: Input array of strings to capitalize. </li>
</ul>
<p><strong>Returns:</strong></p>
<ul>
<li><strong>out</strong> <strong><em>ndarray</em></strong>: Output array of str or unicode, depending on input types</li>
</ul>
<p>See also</p>
<p><a href="https://docs.python.org/dev/library/stdtypes.html#str.capitalize"><code>str.capitalize</code></a></p>
<p><strong>Examples</strong></p>
<figure class="wp-block-image size-large"><img src="https://blog.finxter.com/wp-content/uploads/2020/07/image-8.png" alt="" class="wp-image-10908" srcset="https://blog.finxter.com/wp-content/uploads/2020/07/image-8.png 905w, https://blog.finxter.com/wp-content/uplo...300x55.png 300w, https://blog.finxter.com/wp-content/uplo...68x141.png 768w" sizes="(max-width: 905px) 100vw, 905px" /></figure>
<p> <iframe height="400px" width="100%" src="https://repl.it/@finxter/numpycharcapitalize?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe> </p>
<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio">
<div class="wp-block-embed__wrapper">
<div class="ast-oembed-container"><iframe title="NumPy Tutorial - Everything You Need to Know to Get Started" width="1400" height="788" src="https://www.youtube.com/embed/s55BEAJRTOk?feature=oembed" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>
</div>
</figure>
</div>


https://www.sickgaming.net/blog/2020/07/...apitalize/
Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016