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

CLN: Removed the return_type param in StringMethods.split #13701

Merged

Conversation

gfyoung
Copy link
Member

@gfyoung gfyoung commented Jul 19, 2016

Continues where #10085 left off by removing the return_type parameter for good.

@@ -541,6 +541,7 @@ Removal of prior version deprecations/changes
- ``DataFrame.to_dict()`` has dropped the ``outtype`` parameter in favor of ``orient`` (:issue:`13627`, :issue:`8486`)
- ``pd.Categorical`` has dropped setting of the ``ordered`` attribute directly in favor of the ``set_ordered`` method (:issue:`13671`)
- ``pd.Categorical`` has dropped the ``levels`` attribute in favour of ``categories`` (:issue:`8376`)
- ``pd.core.strings.StringMethods.split`` has dropped the ``return_type`` parameter in favor of ``expand`` (:issue:`13701`)
Copy link
Member

Choose a reason for hiding this comment

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

Other release notes simply write .str.split.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure thing. Will get around to it as soon as Travis gives the green light.

@sinhrks sinhrks added Strings String extension data type and string data Deprecate Functionality to remove in pandas labels Jul 19, 2016
@sinhrks sinhrks added this to the 0.19.0 milestone Jul 19, 2016
@codecov-io
Copy link

codecov-io commented Jul 19, 2016

Current coverage is 84.52%

Merging #13701 into master will decrease coverage by <.01%

@@             master     #13701   diff @@
==========================================
  Files           141        141          
  Lines         51145      51144     -1   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits          43233      43232     -1   
  Misses         7912       7912          
  Partials          0          0          

Powered by Codecov. Last updated by 8acfad3...38531c2

@gfyoung
Copy link
Member Author

gfyoung commented Jul 19, 2016

@sinhrks : Made the requested doc change (hence the [ci skip]), so ready to merge if there are no other concerns.

@@ -1906,45 +1906,6 @@ def test_split_no_pat_with_nonzero_n(self):

def test_split_to_dataframe(self):
s = Series(['nosplit', 'alsonosplit'])

with tm.assert_produces_warning(FutureWarning):
Copy link
Contributor

Choose a reason for hiding this comment

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

these should still work w/o the argument, so leave the tests themselves

Copy link
Member Author

Choose a reason for hiding this comment

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

They are duplicates essentially with the tests that follow, which is why I removed them.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh, ok

@gfyoung
Copy link
Member Author

gfyoung commented Jul 20, 2016

@jreback , @sinhrks : Rebased to fix merge conflict, and Travis is still passing. Ready to merge if there are no other concerns.

@gfyoung
Copy link
Member Author

gfyoung commented Jul 22, 2016

@jreback , @sinhrks : Any updates on this?

@jorisvandenbossche jorisvandenbossche merged commit 253ed5d into pandas-dev:master Jul 22, 2016
@jorisvandenbossche
Copy link
Member

Thanks!

This pull request was closed.
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 Strings String extension data type and string data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants