Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

change convert_objects() to Series.infer_objects() #85

Open
scottdangelo opened this issue Oct 8, 2019 · 0 comments
Open

change convert_objects() to Series.infer_objects() #85

scottdangelo opened this issue Oct 8, 2019 · 0 comments

Comments

@scottdangelo
Copy link
Member

scottdangelo commented Oct 8, 2019

df['GuageHeight(feet)'] = df['GuageHeight(feet)'].convert_objects(convert_numeric=True)
df['Discharge(cfs)'] = df['Discharge(cfs)'].convert_objects(convert_numeric=True)

yields:

/Users/scott/.pyenv/versions/3.6.5/lib/python3.6/site-packages/ipykernel_launcher.py:1: FutureWarning: convert_objects is deprecated.  To re-infer data dtypes for object columns, use Series.infer_objects()
For all other conversions use the data-type specific converters pd.to_datetime, pd.to_timedelta and pd.to_numeric.
  """Entry point for launching an IPython kernel.
/Users/scott/.pyenv/versions/3.6.5/lib/python3.6/site-packages/ipykernel_launcher.py:2: FutureWarning: convert_objects is deprecated.  To re-infer data dtypes for object columns, use Series.infer_objects()
For all other conversions use the data-type specific converters pd.to_datetime, pd.to_timedelta and pd.to_numeric.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant