-
Notifications
You must be signed in to change notification settings - Fork 1.9k
iteritems -> items #12629
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
iteritems -> items #12629
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
|
@sethkimmel3 is attempting to deploy a commit to the Elementl Team on Vercel. A member of the Team first needs to authorize it. |
|
@sethkimmel3 do you know when |
|
@sryza looks like it's been around since 0.5.0 (or earlier): https://github.com/pandas-dev/pandas/blob/v0.5.0/pandas/core/series.py#L447 (pending python3 compatibility). Would probably be a good time to upgrade if they're still on a version that old! |
|
Great - that's a long time. This LGTM. Kicking off a build. |
|
pyright has this complaint: To avoid this, I think probably just casting to a string is best? |
|
@sryza that seems sensible. But I'm not sure why it would flag this as a new issue, as it appears |
I don't believe we pin any particular version. In our CI, I believe we use the latest version (just |
|
I'm assuming this is what you meant by casting to str. Let's see if the build likes this! |
sryza
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Summary & Motivation
Fixes #12604
.iteritemsis deprecated since 1.50 and will be removed in a future version. Changing to.items. (pandas-dev/pandas#45321).How I Tested These Changes
I did not, but pandas-dev/pandas#45321 appears to indicate it's a safe change to make. If I can somehow install this version of dagster on my machine, I'm happy to test using the code that surfaced the issue, but I'm not sure how to do that.