@@ -54,30 +54,26 @@ def __get_contributor(df):
54
54
def __get_affilation (df ):
55
55
return df ["affiliation" ].value_counts ().to_dict ()
56
56
57
-
58
57
def __get_awards (df ):
59
58
return df ["award_number" ].unique ()
60
59
61
60
62
61
def __get_award_number (df ):
63
62
return df ["award_number" ].value_counts ().to_dict ()
64
63
65
-
66
64
def __get_species (df ):
67
65
return df ["species" ].value_counts ().to_dict ()
68
66
69
67
70
68
def __get_cnbtaxonomy (df ):
71
69
return df ["cnbtaxonomy" ].value_counts ().to_dict ()
72
70
73
-
74
71
def __get_genotypes (df ):
75
72
"""
76
73
Write documentation here.
77
74
"""
78
75
return df ["genotype" ].unique ()
79
76
80
-
81
77
def __get_genotype_frequency (df ):
82
78
"""
83
79
Write documentation here.
@@ -88,15 +84,22 @@ def __get_genotype_frequency(df):
88
84
def __get_generalmodality (df ):
89
85
return df ["generalmodality" ].value_counts ().to_dict ()
90
86
87
+ def __get_techniques (df ):
88
+ """
89
+ Write documentation here.
90
+ """
91
+ return df ["technique" ].unique ().to_dict ()
92
+
91
93
92
- def __get_technique (df ):
94
+ def techniques_frequency (df ):
95
+ """
96
+ Write documentation here.
97
+ """
93
98
return df ["technique" ].value_counts ().to_dict ()
94
99
95
-
96
100
def __get_locations (df ):
97
101
return df ["locations" ].value_counts ().to_dict ()
98
102
99
-
100
103
def __get_contributors (df ):
101
104
"""
102
105
This returns an array of contributor names from the contributorname column.
@@ -125,7 +128,6 @@ def __get_number_of_projects(df):
125
128
126
129
return len (df ["project" ].unique ())
127
130
128
-
129
131
def report ():
130
132
# Get today's date
131
133
tdate = date .today ()
@@ -150,6 +152,5 @@ def report():
150
152
report ["generalmodality" ] = __get_generalmodality (df )
151
153
report ["technique" ] = __get_technique (df )
152
154
report ["locations" ] = __get_locations (df )
153
- report ["is_reachable" ] = df ["URL" ].apply (__is_reachable )
154
155
155
156
return report
0 commit comments