Join Leigh Lawhon for an in-depth discussion in this video Bucketing into quartiles, part of Web Portfolio Projects: Sortable Table and Arrays.
- [Instructor] In this function, we're going to treat…the null values a little bit differently.…We had the same code here for row A, sorter index,…text content, but if this returns a null value…and is empty, parse float will return not a number.…So the first thing we're going to check…is whether or not x is not a number.…Your first inclination might be to check…whether or not x equals NaN.…However, NaN does not work like that.…There's a method called isNaN, and you pass it the variable.…
Here, we want to check whether or not…it's not not a number, in other words, is it a number?…And if it's not, we'll push it to the very first bucket,…so all buckets, first bucket,…will push the current val.…Let's next check to see if the value…is within the quartile boundaries,…so we'll say if…x is greater than or equal to column summary,…at the sorter, and we'll look first at the min,…and, the upper boundary will be…x is less than or equal to column summary…at the sorter, and our upper boundary,…which is the first quartile.…
If so, we'll take all buckets and bucket one,…
- Sorting your table efficiently
- Filtering null values and sorting nodes
- Sorting algorithms, including merge sort and insertion sort
- Performance testing
- Creating your own algorithm
- Design components
- Adding icons
Skill Level Intermediate
Workflow Tools for Web Developerswith Christina Truong1h 13m Intermediate
What you should know1m 33s
1. Getting Started
2. Sorting Our Table Efficiently
3. Sorting Algorithms
4. Creating Our Own Algorithm
- 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.