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

DEPR: Series.put, Series.real, Series.imag, Index.dtype_str #27106

Merged
merged 10 commits into from
Jun 28, 2019

Conversation

mroeschke
Copy link
Member

@mroeschke mroeschke commented Jun 28, 2019

Removes:
Series.put
Index.dtype_str
Series.real
Series.imag

@pep8speaks
Copy link

pep8speaks commented Jun 28, 2019

Hello @mroeschke! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-06-28 21:44:10 UTC

@mroeschke mroeschke changed the title Deprecate more DEPR: Series.put, Series.real, Series.imag, Index.dtype_str Jun 28, 2019
@mroeschke mroeschke added the Deprecate Functionality to remove in pandas label Jun 28, 2019
@mroeschke mroeschke added this to the 0.25.0 milestone Jun 28, 2019
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.

lgtm, we should use FutureWarning here

"""
warnings.warn("`imag` has be deprecated and will be removed in a "
"future verison", DeprecationWarning, stacklevel=2)
Copy link
Contributor

Choose a reason for hiding this comment

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

DeprecationWarning -> FutureWaring on all of these

@@ -604,6 +604,9 @@ Other deprecations
- The :meth:`Series.ftype`, :meth:`Series.ftypes` and :meth:`DataFrame.ftypes` methods are deprecated and will be removed in a future version.
Instead, use :meth:`Series.dtype` and :meth:`DataFrame.dtypes` (:issue:`26705`).
- :meth:`Timedelta.resolution` is deprecated and replaced with :meth:`Timedelta.resolution_string`. In a future version, :meth:`Timedelta.resolution` will be changed to behave like the standard library :attr:`timedelta.resolution` (:issue:`21344`)
- :attr:`Index.dtype_str` is deprecated. (:issue:`18262`)
- :attr:`Series.imag` and :attr:`Series.real` is deprecated. (:issue:`18262`)
Copy link
Contributor

Choose a reason for hiding this comment

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

is -> are

@jreback
Copy link
Contributor

jreback commented Jun 28, 2019

can you add to the list in #6581 as well

@jreback jreback mentioned this pull request Jun 28, 2019
34 tasks
@mroeschke
Copy link
Member Author

Changed to FutureWarnings and green.

@jreback jreback merged commit 110c02f into pandas-dev:master Jun 28, 2019
@jreback
Copy link
Contributor

jreback commented Jun 28, 2019

thanks @mroeschke

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.

3 participants