This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instructions: | |
(1) Load ICD category code descriptions into dataframe. Do not store the file on disk. | |
url: https://github.com/kamillamagna/ICD-10-CSV/blob/master/categories.csv?raw=true | |
(2) Load ICD block descriptions into a dataframe. Do no store any files to disk | |
url: https://www.aapc.com/icd-10/ | |
hint: consider using `pd.read_html` | |
(3) Count all the icd10 codes characterized as diseases according to the ICD block description | |
(4) From the codes in step (3) isolate though refering to 'viral' or 'virus' and concatenate, separating by semicolon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Neda Jabbari | |
### Jan 8, 2020 | |
### The get_dominant_color function detects dominant color from an image using a dictionary of basic colors, | |
### k-means clustering and eucledian distance. | |
def get_dominant_color(image, k, image_processing_size): | |
""" | |
Read and prepare image in RGB color space. | |
Perform kmeans clustering to get color clusters. |