Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataFrame小技巧 | 石锅拌饭 #5

Open
chunchengwei opened this issue Dec 5, 2018 · 0 comments
Open

DataFrame小技巧 | 石锅拌饭 #5

chunchengwei opened this issue Dec 5, 2018 · 0 comments

Comments

@chunchengwei
Copy link
Owner

https://chunchengwei.github.io/ruan-jian/dataframe-xiao-ji-qiao/

  1. 筛选数据DataFrame.query(expr, inplace=False, **kwargs):通过字符串表达式选取列。参考问题
    df.query('B > 50 and C != 900') # 等效于
    df[(df[
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant