import pandas as pd df = pd.DataFrame({ "col1": [1, 2, 3, 1, 2, 3], "col2": ["A", "B", "A", "B", "A", "B"] }) c = r"(df['col1'] == 1) | (df['col2'] == 'A')" df[eval(c)] df[df['col1'] == 1] d = "df['col1'] == 1" df[eval(d)]
Pages
- Index of Lessons in Technology
- Index of Book Summaries
- Index of Book Lists And Downloads
- Index For Job Interviews Preparation
- Index of "Algorithms: Design and Analysis"
- Python Course (Index)
- Data Analytics Course (Index)
- Index of Machine Learning
- Postings Index
- Index of BITS WILP Exam Papers and Content
- Lessons in Investing
- Index of Math Lessons
- Downloads
- Index of Management Lessons
- Book Requests
- Index of English Lessons
- Index of Medicines
- Index of Quizzes (Educational)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment