I have a Pandas DataFrame
indexed by date. There a number of columns but many columns are only populated for part of the time series. I'd like to find where the first and last values non-NaN
values are located so that I can extracts the dates and see how long the time series is for a particular column.
Could somebody point me in the right direction as to how I could go about doing something like this? Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…