notebooks/common.py
def remove_event_rows(t: pd.DataFrame) -> pd.DataFrame:
    """Remove the event marker rows."""
    t = t.loc[t[t.columns[0]] != t[t.columns[1]]]
    t = t.loc[t[t.columns[1]] != t[t.columns[2]]]
    t = t[t[t.columns[1]].notna()]
    return t
Remove the event marker rows.
Remove the event marker rows.
Remove the event marker rows .
def remove_event_rows(t: pd.DataFrame) -> pd.DataFrame:
    t = t.loc[t[t.columns[0]] != t[t.columns[1]]]
    t = t.loc[t[t.columns[1]] != t[t.columns[2]]]
    t = t[t[t.columns[1]].notna()]
    return t
def remove_event_rows ( t : pd . DataFrame ) -> pd . DataFrame : t = t . loc [ t [ t . columns [ 0 ] ] != t [ t . columns [ 1 ] ] ] t = t . loc [ t [ t . columns [ 1 ] ] != t [ t . columns [ 2 ] ] ] t = t [ t [ t . columns [ 1 ] ] . notna ( ) ] return t
Remove the event marker rows.
Remove the event marker rows .
"""Remove the event marker rows."""
t
pd.DataFrame