We can more easily identify outliers by using the NumPy sort function np.sort(heights_array). We can then begin to identify where possible errors or anomalies lie. You can get people who are between 120cm and 190cm, but it is unlikely that the smallest measurement of 10cm, or the tallest measurement of 1200cm are accurate.
Showing posts with label sort. Show all posts
Showing posts with label sort. Show all posts
NumPy: Outliers and Sorting
Sometimes, from the range of a given dataset, we will see elements that are unusually larger or smaller than the other elements. In an array of heights, for example, we may see numbers that are very short, or very tall. These elements are known as outliers.
We can more easily identify outliers by using the NumPy sort function np.sort(heights_array). We can then begin to identify where possible errors or anomalies lie. You can get people who are between 120cm and 190cm, but it is unlikely that the smallest measurement of 10cm, or the tallest measurement of 1200cm are accurate.
We can more easily identify outliers by using the NumPy sort function np.sort(heights_array). We can then begin to identify where possible errors or anomalies lie. You can get people who are between 120cm and 190cm, but it is unlikely that the smallest measurement of 10cm, or the tallest measurement of 1200cm are accurate.
Subscribe to:
Posts (Atom)
Web Development: Organizing Files and Folders
When you begin to build your website, it's a very clever idea to organize your files and folders efficiently. You should have: A ...
-
When you begin to build your website, it's a very clever idea to organize your files and folders efficiently. You should have: A ...
-
When using openpyxl to load workbooks, ensure that your excel file is saved in the same folder as the .py file you are developing. import...
-
It is a very good idea when creating a new webpage to reset all styles for the browser. This ensures that all browsers are starting off on ...