DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
pandas convert all string columns to lowercase
df = df.applymap(lambda s:s.lower() if type(s) == str else s)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#pandas
#convert
#string
#columns
#lowercase
ADD COMMENT
Topic
COMMENT
Name
4+4 =
Submit