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

Fix newly added enum.py statement to eliminate FutureWarning of deprecation #238

Open
martinholmer opened this issue Aug 7, 2024 · 2 comments

Comments

@martinholmer
Copy link

@nikhilwoodruff, a few days ago in commit 7598d96 you added this statement:

if isinstance(array[0], Enum):
array = np.array([item.name for item in array])

This statement generates a dozen FutureWarnings of a deprecation as described here:

Screenshot 2024-08-07 at 3 22 27 PM

It would be good to fix this before it becomes an error.

@MaxGhenis
Copy link
Contributor

Just involves replacing array[0] with array.iloc[0]?

@martinholmer
Copy link
Author

@MaxGhenis said in issue #238:

Just involves replacing array[0] with array.iloc[0]

Yes, I think so. Certainly that shouldn't be too burdensome for @nikhilwoodruff

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

2 participants