Skip to content

Commit

Permalink
Merge pull request #97 from martinfleis/print
Browse files Browse the repository at this point in the history
remove print statements
  • Loading branch information
sjsrey authored Jan 27, 2025
2 parents 0cfdecf + 845f11e commit a77a35e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions inequality/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ def compute_mean(data):


# Usage
df = pd.DataFrame({"a": [1, 2, 3, 4], "b": [5, 6, 7, 8]})
print(compute_mean(df, column="a")) # Output: 2.5
# df = pd.DataFrame({"a": [1, 2, 3, 4], "b": [5, 6, 7, 8]})
# print(compute_mean(df, column="a")) # Output: 2.5

arr = np.array([1, 2, 3, 4])
print(compute_mean(arr)) # Output: 2.5
# arr = np.array([1, 2, 3, 4])
# print(compute_mean(arr)) # Output: 2.5

lst = [1, 2, 3, 4]
print(compute_mean(lst)) # Output: 2.5
# lst = [1, 2, 3, 4]
# print(compute_mean(lst)) # Output: 2.5

0 comments on commit a77a35e

Please sign in to comment.