{"id":115489,"date":"2020-07-16T20:18:02","date_gmt":"2020-07-16T20:18:02","guid":{"rendered":"https:\/\/blog.finxter.com\/?p=10905"},"modified":"2020-07-16T20:18:02","modified_gmt":"2020-07-16T20:18:02","slug":"numpy-char-capitalize","status":"publish","type":"post","link":"https:\/\/sickgaming.net\/blog\/2020\/07\/16\/numpy-char-capitalize\/","title":{"rendered":"numpy.char.capitalize"},"content":{"rendered":"<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>\n<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>\n<p>Return a copy of <em>a<\/em> with only the first character of each element capitalized.<\/p>\n<p>Calls <em>str.capitalize<\/em> element-wise.<\/p>\n<p>For 8-bit strings, this method is locale-dependent. <\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<ul>\n<li><strong>a: <em>array_like of str or unicode<\/em><\/strong>: Input array of strings to capitalize. <\/li>\n<\/ul>\n<p><strong>Returns:<\/strong><\/p>\n<ul>\n<li><strong>out<\/strong> <strong><em>ndarray<\/em><\/strong>: Output array of str or unicode, depending on input types<\/li>\n<\/ul>\n<p>See also<\/p>\n<p><a href=\"https:\/\/docs.python.org\/dev\/library\/stdtypes.html#str.capitalize\"><code>str.capitalize<\/code><\/a><\/p>\n<p><strong>Examples<\/strong><\/p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" 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\/uploads\/2020\/07\/image-8-300x55.png 300w, https:\/\/blog.finxter.com\/wp-content\/uploads\/2020\/07\/image-8-768x141.png 768w\" sizes=\"(max-width: 905px) 100vw, 905px\" \/><\/figure>\n<p> <iframe loading=\"lazy\" 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>\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\">\n<div class=\"wp-block-embed__wrapper\">\n<div class=\"ast-oembed-container\"><iframe loading=\"lazy\" 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>\n<\/div>\n<\/figure>\n","protected":false},"excerpt":{"rendered":"<p>numpy.char.capitalize(a) Original Documentation Return a copy of a with only the first character of each element capitalized. Calls str.capitalize element-wise. For 8-bit strings, this method is locale-dependent. Parameters: a: array_like of str or unicode: Input array of strings to capitalize. Returns: out ndarray: Output array of str or unicode, depending on input types See also [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[857],"tags":[73,468,528],"class_list":["post-115489","post","type-post","status-publish","format-standard","hentry","category-python-tut","tag-programming","tag-python","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/115489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/comments?post=115489"}],"version-history":[{"count":0,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/115489\/revisions"}],"wp:attachment":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media?parent=115489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/categories?post=115489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/tags?post=115489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}