Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Get all columns with particular name in string

cols = [col for col in df.columns if 'word' in col]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Get #columns #string
ADD COMMENT
Topic
Name
6+3 =