https://www.kaggle.com/cpagel/adjust-simple-xray-cnn
from glob import glob
import os
import pandas as pd
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import numpy as np
import matplotlib.pyplot as plt
all_image_paths = {os.path.basename(x): x for x in
glob(r'D:\hw\images\*.png')}
all_xray_df = pd.read_csv('Data_Entry_2017.csv')
all_image_paths = {a}
print('Scans found:', len(a), ', Total Headers', all_xray_df.shape[0])
all_xray_df['path'] = all_xray_df['Image Index'].map(all_image_paths.get)
#all_xray_df['Patient Age'] = all_xray_df['Patient Age'].map(lambda x:
int(x[:-1]))
all_xray_df.sample(3)