Skip to content

Instantly share code, notes, and snippets.

View nedaresa's full-sized avatar

Neda Jabbari nedaresa

View GitHub Profile
@nedaresa
nedaresa / instructions.txt
Created March 25, 2020 04:14 — forked from gajomi/instructions.txt
Healthcare data engineering with pandas practice problem
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
@nedaresa
nedaresa / get_dominant_color.py
Created January 9, 2020 06:44
This function detects dominant color from an image
### 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.