About 512,000 results
Open links in new tab
  1. python - How to change a string into uppercase? - Stack Overflow

    How can I convert a string into uppercase in Python? When I tried to research the problem, I found something about string.ascii_uppercase, but it couldn't solve the problem:

  2. python - Convert a list with strings all to lowercase or uppercase ...

    I have a Python list variable that contains strings. Is there a function that can convert all the strings in one pass to lowercase and vice versa, uppercase?

  3. Changing string to uppercase in python - Stack Overflow

    Mar 5, 2019 · In Python str.upper() returns a copy of the string with upper case values, and does not mutate the original string. In fact, strings in Python are immutable anyways.

  4. Converting specific letters to uppercase or lowercase in python

    4 So to return a copy of a string converted to lowercase or uppercase one obviously uses the lower() or upper(). But how does one go about making a copy of a string with specific letters converted to upper …

  5. python - Applying uppercase to a column in pandas dataframe - Stack ...

    Jul 7, 2015 · 8 str.upper() wants a plain old Python 2 string unicode.upper() will want a unicode not a string (or you get TypeError: descriptor 'upper' requires a 'unicode' object but received a 'str') So I'd …

  6. Make Strings In List Uppercase - Python 3 - Stack Overflow

    Aug 2, 2017 · It's great that you're learning Python! In your example, you are trying to uppercase a list. If you think about it, that simply can't work. You have to uppercase the elements of that list. …

  7. python - Convert whole dataframe from lower case to upper case with ...

    astype () will cast each series to the dtype object (string) and then call the str () method on the converted series to get the string literally and call the function upper () on it. Note that after this, the dtype of all …

  8. Python: Capitalize a word using string.format () - Stack Overflow

    Jul 25, 2013 · Is it possible to capitalize a word using string formatting? For example, "{user} did such and such.".format(user="foobar") should return "Foobar did such and such." Note that I'm well aware …

  9. Convert UPPERCASE string to sentence case in Python

    Oct 11, 2016 · 2 In case you need to convert to sentence case a string that contains multiple sentences, I wrote this function:

  10. python - how to change the case of first letter of a string? - Stack ...

    Both .capitalize () and .title (), changes the other letters in the string to lower case. Here is a simple function that only changes the first letter to upper case, and leaves the rest unchanged.