Create an account


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

#1
numpy.char.capitalize

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

str.capitalize

Examples






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



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tut] Python Library Hijacking – A Simple Demonstration on NumPy xSicKxBot 0 1,253 11-22-2022, 01:48 AM
Last Post: xSicKxBot
  [Tut] How to Convert Pandas DataFrame/Series to NumPy Array? xSicKxBot 0 1,221 10-24-2022, 02:13 PM
Last Post: xSicKxBot
  [Tut] How to Print a NumPy Array Without Scientific Notation in Python xSicKxBot 0 1,225 10-20-2022, 11:44 AM
Last Post: xSicKxBot
  [Tut] Python – Return NumPy Array From Function xSicKxBot 0 1,192 10-16-2022, 03:49 AM
Last Post: xSicKxBot
  [Tut] How to Find the Longest String in a NumPy Array? xSicKxBot 0 1,102 09-19-2022, 11:34 AM
Last Post: xSicKxBot
  [Tut] Combine Images Using Numpy xSicKxBot 0 1,220 09-18-2022, 10:23 AM
Last Post: xSicKxBot
  [Tut] How to Iterate over a NumPy Array xSicKxBot 0 1,161 08-19-2022, 06:55 PM
Last Post: xSicKxBot
  [Tut] How to Convert a CSV to NumPy Array in Python? xSicKxBot 0 1,176 07-11-2022, 03:42 AM
Last Post: xSicKxBot
  [Tut] How to Call an Element from a Numpy Array? xSicKxBot 0 1,160 06-21-2022, 04:08 AM
Last Post: xSicKxBot
  [Tut] How to Extend a NumPy Array in Python xSicKxBot 0 1,118 06-13-2022, 04:59 PM
Last Post: xSicKxBot

Forum Jump:


Users browsing this thread:

Forum software by © MyBB Theme © iAndrew 2016