Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Fill NaN with the first valid value starting from the rightmost column, then extract first column

sin_grad = graduation.fillna(method='bfill', axis=1).iloc[:, 0] 
 
PREVIOUS NEXT
Tagged: #Fill #NaN #valid #starting #rightmost #extract #column
ADD COMMENT
Topic
Name
8+9 =