DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+9 =
Submit