qis.df_last_row¶
- qis.df_last_row(df, axis=0, is_nonan=True)[source]¶
last row (axis=0) or last column (axis=1); is_nonan takes the last finite value per key.
On a ragged panel the last row is not the last observation of every column: a series that stopped reporting earlier carries a NaN there.
is_nonan=Truetakes each column’s own last finite value instead, which is what a current-holdings or latest-level read wants.- Parameters:
- Returns:
the values as an array, in column order for
axis=0and row order foraxis=1- Raises:
ValueError – if
axisis not 0 or 1- Return type: