Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

df.iterrows write to column

for index, row in df.iterrows():
    if isinstance(row.column_name, float):
        df.loc[index, 'column_name'] = 'string'
        df.loc[index, 'column_name'] = 'string'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #write #column
ADD COMMENT
Topic
Name
3+8 =