Skip to content

Commit

Permalink
Merge pull request #460 from ajadczaksunriselabs/pandas-set-indexer
Browse files Browse the repository at this point in the history
bug-fix: Pandas set indexing error
  • Loading branch information
tompollard authored Jul 6, 2023
2 parents c0f1b12 + 1737eb0 commit 2cdb44a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wfdb/io/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ def get_contained_labels(self, inplace=True):
else:
raise Exception("No annotation labels contained in object")

contained_labels = label_map.loc[index_vals, :]
contained_labels = label_map.loc[list(index_vals), :]

# Add the counts
for i in range(len(counts[0])):
Expand Down

1 comment on commit 2cdb44a

@windowshopr
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this get committed to main? Ran into this error too, works with latest versions of Pandas.

Please sign in to comment.