Skip to Content
Learn Python by Building Data Science Applications
book

Learn Python by Building Data Science Applications

by Philipp Kats, David Katz
August 2019
Beginner
482 pages
12h 56m
English
Packt Publishing
Content preview from Learn Python by Building Data Science Applications

Questions

  1. How do we retrieve one element from a list? How do we retrieve the last element of the list without computing its length explicitly?
  2. How do we get all elements of a list—except the first one and the last one—in the reverse order?
  3. How do we merge two dictionaries, and what happens if some of the keys are the same in both of them?
  4. What is the best data structure to check for membership?
  5. Can we get the last element of the generator without getting all the others?
  6. How do we combine elements from N triplets into three arrays of N one by one?
  7. What is the shortest way to generate a list of specific dictionary properties—which are retrieved from a list of dictionaries—if a certain other property of each dictionary is in the set?
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python for Data Science

Python for Data Science

Yuli Vasiliev
Introduction to Machine Learning with Python

Introduction to Machine Learning with Python

Andreas C. Müller, Sarah Guido

Publisher Resources

ISBN: 9781789535365Supplemental Content