I can use pandas dropna() functionality to remove rows with some or all columns set as NA\'s. Is there an equivalent function for drop
pandas
dropna()
NA
It turns out this can be nicely expressed in a vectorized fashion:
> df = pd.DataFrame({'a':[0,0,1,1], 'b':[0,1,0,1]}) > df = df[(df.T != 0).any()] > df a b 1 0 1 2 1 0 3 1 1