Skip to content

Commit 09072a0

Browse files
authored
Update get.py
I updated my code to create another funntion.
1 parent 62a6742 commit 09072a0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

braininventory/get.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,19 @@ def report():
9898

9999
report['is_reachable'] = df['URL'].apply(__is_reachable)
100100
import pandas as pd
101+
def _get_technique_(df):
102+
return df['technique'].unique()
103+
number_of_techniques = len(_get_technique_(df))
104+
101105
def technique_frequency(df):
102106
number_of_techniques = len(_get_technique_(df))
103107
print("Number of Techniques: ",number_of_techniques )
104108
technique_counts = df['technique'].value_counts()
105109
for technique, count in technique_counts.items():
106110
print(f"Technique: {technique}, Count: {count}")
107111

108-
print(technique_frequency(df))
112+
technique_frequency(df)
113+
109114

110115
return report
111116

0 commit comments

Comments
 (0)