@@ -54,30 +54,26 @@ def __get_contributor(df):
5454def __get_affilation (df ):
5555 return df ["affiliation" ].value_counts ().to_dict ()
5656
57-
5857def __get_awards (df ):
5958 return df ["award_number" ].unique ()
6059
6160
6261def __get_award_number (df ):
6362 return df ["award_number" ].value_counts ().to_dict ()
6463
65-
6664def __get_species (df ):
6765 return df ["species" ].value_counts ().to_dict ()
6866
6967
7068def __get_cnbtaxonomy (df ):
7169 return df ["cnbtaxonomy" ].value_counts ().to_dict ()
7270
73-
7471def __get_genotypes (df ):
7572 """
7673 Write documentation here.
7774 """
7875 return df ["genotype" ].unique ()
7976
80-
8177def __get_genotype_frequency (df ):
8278 """
8379 Write documentation here.
@@ -88,15 +84,22 @@ def __get_genotype_frequency(df):
8884def __get_generalmodality (df ):
8985 return df ["generalmodality" ].value_counts ().to_dict ()
9086
87+ def __get_techniques (df ):
88+ """
89+ Write documentation here.
90+ """
91+ return df ["technique" ].unique ().to_dict ()
92+
9193
92- def __get_technique (df ):
94+ def techniques_frequency (df ):
95+ """
96+ Write documentation here.
97+ """
9398 return df ["technique" ].value_counts ().to_dict ()
9499
95-
96100def __get_locations (df ):
97101 return df ["locations" ].value_counts ().to_dict ()
98102
99-
100103def __get_contributors (df ):
101104 """
102105 This returns an array of contributor names from the contributorname column.
@@ -125,7 +128,6 @@ def __get_number_of_projects(df):
125128
126129 return len (df ["project" ].unique ())
127130
128-
129131def report ():
130132 # Get today's date
131133 tdate = date .today ()
@@ -150,6 +152,5 @@ def report():
150152 report ["generalmodality" ] = __get_generalmodality (df )
151153 report ["technique" ] = __get_technique (df )
152154 report ["locations" ] = __get_locations (df )
153- report ["is_reachable" ] = df ["URL" ].apply (__is_reachable )
154155
155156 return report
0 commit comments