data_histogram_splited_dataset.py 785 Bytes
# -*- coding: utf-8 -*-
"""data_histogram_splited_dataset.ipynb

Automatically generated by Colaboratory.

Original file is located at
    https://colab.research.google.com/drive/16Rn0IDJTE6vJMOZtafDAI19AvGD9eK4C
"""

import pandas as pd
import matplotlib.pyplot as plt

dftr = pd.read_excel('/content/drive/MyDrive/2d-slice-set-networks-for-brain-age-master/data/train0617.xls', usecols=['Age'])
dftst = pd.read_excel('/content/drive/MyDrive/2d-slice-set-networks-for-brain-age-master/data/test06171.xls', usecols=['Age'])
dfv = pd.read_excel('/content/drive/MyDrive/2d-slice-set-networks-for-brain-age-master/data/valid0617.xls', usecols=['Age'])

print(dftr.describe())
print(dftst.describe())
print(dfv.describe())

plt.hist(dftr['Age'])
plt.hist(dftst['Age'])
plt.hist(dfv['Age'])