JiaxiangBU / tutoring2

The collection of Python and R code scripts to tutor others.
https://jiaxiangbu.github.io/tutoring2/
Other
8 stars 7 forks source link

Python dataframe.filter()中反选参数 #56

Closed slsongge closed 4 years ago

slsongge commented 4 years ago

问题

我在python中使用filter中找不到反选的参数

代码

df_agg_right = df_agg_end.filter(like='Rate_')

## 我就尝试用这种方法,还是不行
df_agg_right = df_agg_end.filter(regex='[^Rate_]')