Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Pandas: Create new column out of other columns where value is not null

df['AZ'] = df.loc[:,'A':'Z'].fillna(method='ffill',axis=1)['Z']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Python #Create #column #columns #null
ADD COMMENT
Topic
Name
4+7 =