Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

access dataframe column with space

#Quick and easy, rename the column to replace space with underscore
df1.columns = [c.replace(' ', '_') for c in df1.columns]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #access #dataframe #column #space
ADD COMMENT
Topic
Name
5+1 =