Skip to content

Commit 26a1442

Browse files
authored
Update documentation
1 parent 2237d9d commit 26a1442

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

braininventory/get.py

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,24 @@ def report():
100100

101101
return report
102102

103-
# Get the list of names for unique projects
104-
def __get_projects(df):
105-
return df['project'].unique()
103+
#
104+
def __get_list_of_projects(df):
105+
'''
106+
Get the list of names for unique projects
107+
108+
Input parameter: dataframe
109+
Output: list of projects
110+
'''
111+
112+
return df['project'].unique().to_dict()
106113

107-
# Get the number of unique projects
114+
#
108115
def __get_number_of_projects(df):
109-
return len(df['project'].unique())=
116+
'''
117+
Get the number of unique projects
118+
119+
Input parameter: dataframe
120+
Output: number of projects
121+
'''
122+
123+
return len(df['project'].unique())

0 commit comments

Comments
 (0)