In this data frame, we now have 458 rows and 9 columns. Let`s use a vectorize operation to filter out all those rows that match a given condition.
As we can see from the output, the returned data frame contains only players aged 25 or over.
Solution # 2: We can use
DataFrame.drop () to remove such lines that do not meet this condition.
As we can see from the output, we have successfully discarded all those rows that do not satisfy the given condition applied to the column at "Age".
Pandas for Everyone: Python Data Analysis (Addison-Wesley Data & Analytics Series), 1st Edition. Pandas for Everyone brings together the practical knowledge and insights you need to solve real-worl...
A Problem-Solver’s Guide to Building Real-World Intelligent Systems. Data is the new oil and Machine Learning is a powerful concept and framework for making the best out of it. In this age of aut...
Automate the Boring Stuff with Python PDF, 2nd Edition: Practical Programming for Total Beginners Illustrated Edition. The second edition of this Python bestseller (over 100,000 copies sold in prin...
The rate at which we produce data is growing steadily, thus creating even larger streams of continuously evolving data. Online news, micro-blogs, search queries are just a few examples of these contin...