Skip to content

Commit a09a85c

Browse files
authored
Update get.py
1 parent 9a7e983 commit a09a85c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

braininventory/get.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ def __get_number_of_projects(df):
125125

126126
def __get__percentage_of_metadata_version_1(df):
127127
'''
128-
Add documentation here.
128+
Get the percentage/ratio of metadata version 1 from all datasets
129+
130+
Input: dataframe
131+
Output: an integer
129132
'''
130133
return len(df[df['metadata_version'] == 1])/len(df)
131134

0 commit comments

Comments
 (0)