例えば、 df[df.a < df.a.quantile(.95)]
のようにすれば上位5%以下の行を絞り込める。
pandas力もっとつけたい。。
参考: https://stackoverflow.com/questions/18580461/eliminating-all-data-over-a-given-percentile
例えば、 df[df.a < df.a.quantile(.95)]
のようにすれば上位5%以下の行を絞り込める。
pandas力もっとつけたい。。
参考: https://stackoverflow.com/questions/18580461/eliminating-all-data-over-a-given-percentile