Skip to content

Commit 52b91f1

Browse files
authored
Update get.py
1 parent 6099331 commit 52b91f1

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)