Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gower_topn does not raise error when data_x has more than 1 row #20

Open
JeromeWYCB opened this issue Jan 1, 2025 · 0 comments
Open

Comments

@JeromeWYCB
Copy link

JeromeWYCB commented Jan 1, 2025

Does not raise error when data_x has more than 1 row.

if data_x.shape[0] >= 2: TypeError("Only support `data_x` of 1 row. ")

Suggest to change to:

if data_x.shape[0] >= 2: 
    raise TypeError("Only support `data_x` of 1 row. ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant