Skip to content

Commit b40471b

Browse files
authored
Update get.py
1 parent 1706423 commit b40471b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

braininventory/get.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ def report():
100100

101101
return report
102102

103+
##The point of the code is to show the dictionary of general modality which documents the labels under general modality and documents the number of entries under each label.
103104
def get_number_of_modalities(df):
104-
return df['generalmodality'].value_counts()
105+
return (df['generalmodality'].value_counts()).to_dict()
106+
107+
print(get_number_of_modalities(df))
108+
105109

0 commit comments

Comments
 (0)