1. 程式人生 > >pandas.Dataframe復雜條件過濾

pandas.Dataframe復雜條件過濾

lex tar over lte sta afr class ons div

https://stackoverflow.com/questions/11418192/pandas-complex-filter-on-rows-of-dataframe

mask = df.apply(lambda row: row["col"].val < 100, axis=1)
df[mask]

  

pandas.Dataframe復雜條件過濾