Skip to content

Commit

Permalink
remove unneccessary asarray
Browse files Browse the repository at this point in the history
  • Loading branch information
briangu committed Dec 8, 2024
1 parent 8ea38de commit 6710bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klongpy/monads.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def eval_monad_groupby(a):
="hello foo" --> [[0] [1] [2 3] [4 7 8] [5] [6]]
"""
q = np.asarray(str_to_chr_arr(a) if isinstance(a, str) else a)
q = str_to_chr_arr(a) if isinstance(a, str) else np.asarray(a)
if len(q) == 0:
return q
a = q.argsort()
Expand Down

0 comments on commit 6710bbf

Please sign in to comment.