When working with data, a common mistake is choosing the wrong data structures. In this video, learn how to choose data structures that are best suited and most efficient for your project.
- [Instructor] When working with data, … a common mistake is choosing the wrong data structures. … In this video, … I will walk through a couple of examples … to show you how to select data structures … that are best suited for your goals. … For example, … let's say that I have information about the types of pets … in a household and I need to check whether certain types … of pets are part of that household or not. … If I choose to store the data in a list, … I will be able to perform searches … but a list would not be the most efficient data structure … in this context. … Also given the nature of the goal here, … the data does not need to be stored in an ordered manner, … which is another indication … that storing the data in a list is not necessary. … Instead, the data can be stored in a set. … It would look something like this. … If I wanted to perform a search to see … if bunny is in this set of data, … I would do something like this. … And if I wanted to perform another search … to see if chameleon is in the data, …
Skill Level Intermediate
1. Avoid Mistakes in Coding Practices
2. Avoid Mistakes in Structuring Code
3. Avoid Mistakes in Handling Data
4. Avoid Mistakes in Machine Learning
Using redundant features1m 45s
Get started with Python1m 7s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.