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

Added FutureWarning to Series.str.__iter__ #29909

Merged

Conversation

SaturnFromTitan
Copy link
Contributor

@SaturnFromTitan SaturnFromTitan commented Nov 27, 2019

@SaturnFromTitan SaturnFromTitan force-pushed the deprecate-series-str-iter branch 3 times, most recently from 882f3c8 to ab8c473 Compare November 28, 2019 12:21
pandas/core/strings.py Outdated Show resolved Hide resolved
@WillAyd WillAyd added the Deprecate Functionality to remove in pandas label Nov 29, 2019
@WillAyd WillAyd added this to the 1.0 milestone Nov 29, 2019
@SaturnFromTitan SaturnFromTitan changed the title Added DeprecationWarning to Series.str.__iter__ Added FutureWarning to Series.str.__iter__ Nov 30, 2019
doc/source/whatsnew/v1.0.0.rst Outdated Show resolved Hide resolved
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

why exactly do we need to deprecate this? I would simply fix the bug

@SaturnFromTitan
Copy link
Contributor Author

@jreback The deprecation follows from the discussion in #28319 where an actual fix to the issue was suggested:

WillAyd:

I think the best approach would be to deprecate the iter method of Series.str as noted above and remove in the future

@jreback
Copy link
Contributor

jreback commented Dec 2, 2019

@jreback The deprecation follows from the discussion in #28319 where an actual fix to the issue was suggested:

WillAyd:

I think the best approach would be to deprecate the iter method of Series.str as noted above and remove in the future

ok i see the conversation and agree deprecation is ok. but this doesnt' fix the actual bug #28277
right? (meaning that should be a separate PR).

@SaturnFromTitan
Copy link
Contributor Author

SaturnFromTitan commented Dec 2, 2019

Yes, the bug isn't fixed by that, but @TomAugspurger suggested (in the issue) the expected behaviour should be to raise an exception:

series.str is an accessor, not an array-like of strings. I would expect an exception to be raised here.

So even though the bug isn't fixed immediately, in later versions, when this deprecation is taking effet, it will be resolved. Do you mean we should keep the issue open until then @jreback?

@SaturnFromTitan
Copy link
Contributor Author

Resolved merge conflict and removed the "closes" tag from the PR description @jreback

@jreback
Copy link
Contributor

jreback commented Dec 4, 2019

@SaturnFromTitan can you merge master

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

lgtm

@SaturnFromTitan
Copy link
Contributor Author

CI is green @jreback

@jreback
Copy link
Contributor

jreback commented Dec 4, 2019

great will look soon

@jreback jreback merged commit 77c52e4 into pandas-dev:master Dec 8, 2019
@jreback
Copy link
Contributor

jreback commented Dec 8, 2019

thanks @SaturnFromTitan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants