We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2237d9d commit 26a1442Copy full SHA for 26a1442
braininventory/get.py
@@ -100,10 +100,24 @@ def report():
100
101
return report
102
103
-# Get the list of names for unique projects
104
-def __get_projects(df):
105
- return df['project'].unique()
+#
+def __get_list_of_projects(df):
+ '''
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()
113
-# Get the number of unique projects
114
115
def __get_number_of_projects(df):
- return len(df['project'].unique())=
116
117
+ Get the number of unique projects
118
119
120
+ Output: number of projects
121
122
123
+ return len(df['project'].unique())
0 commit comments