Skip to content

Commit 343f53f

Browse files
authored
Merge pull request #77 from brain-image-library/76-information-about-dataset-sizes
Update get.py
2 parents 6099331 + 52b91f1 commit 343f53f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

braininventory/get.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,21 @@ def __get_general_modality_treemap(df):
6969

7070
plt.show()
7171

72+
def __get_size_statistics(df):
73+
'''
74+
Helper method that returns size statistics from size column.
75+
76+
Input: dataframe
77+
Output: list of numbers
78+
'''
79+
80+
min = df['size'].min()
81+
max = df['size'].max()
82+
average = df['size'].mean()
83+
std = df['size'].std()
84+
85+
return[min, max, average, std]
86+
7287
def today():
7388
"""
7489
Get today's snapshot of Brain Image Library.

0 commit comments

Comments
 (0)