Skip to content

Commit 24ffadd

Browse files
committed
Refactor function names for clarity.
Simplify if statements for better readability. Update variable names for consistency. Remove unused imports and variables. Fix bug in calculation logic.
1 parent 82d2f83 commit 24ffadd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

braininventory/get.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def __get_awards(df):
412412
--------
413413
numpy.ndarray
414414
An array of unique award numbers.
415-
415+
416416
Note:
417417
-----
418418
The input DataFrame `df` should have a column named "award_number" containing categorical data
@@ -648,6 +648,7 @@ def __get_affiliations(df):
648648
"""
649649
return df["affiliation"].value_counts().to_dict()
650650

651+
651652
def __get_contributors(df):
652653
"""
653654
Get a dictionary containing the count of occurrences of each unique contributor name.

0 commit comments

Comments
 (0)