Skip to content

DOC: Added deprecation to convert_objects docstring#12052 #12209

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

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2724,6 +2724,8 @@ def _convert(self, datetime=False, numeric=False, timedelta=False,
def convert_objects(self, convert_dates=True, convert_numeric=False,
convert_timedeltas=True, copy=True):
"""
Deprecated.

Copy link
Contributor

Choose a reason for hiding this comment

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

Add this instead to the See Also section (leave the deprecated part)

Attempt to infer better dtype for object columns

Parameters
Expand All @@ -2742,6 +2744,15 @@ def convert_objects(self, convert_dates=True, convert_numeric=False,
conversion was done). Note: This is meant for internal use, and
should not be confused with inplace.

See also
--------
pandas.to_datetime : Convert argument to datetime.

pandas.to_timedelta : Convert argument to timedelta.

pandas.to_numeric : Return a fixed frequency timedelta index,
with day as the default.

Returns
-------
converted : same as input object
Expand Down