Skip to content

BUG: convert_objects(convert_dates='coerce') fails on single-valued series #10494

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
jmenglund opened this issue Jul 3, 2015 · 1 comment
Closed
Labels
Dtype Conversions Unexpected or buggy dtype conversions Duplicate Report Duplicate issue or pull request

Comments

@jmenglund
Copy link

With an unconvertible value (like e.g. "2014-12-32"), convert_objects(convert_dates='coerce') is supposed to return NaT. When run on a series with a single unconvertible value it gives back the original string instead.

>>> from pandas import Series
>>> Series(['2014-12-32']).convert_objects(convert_dates='coerce')

0    2014-12-32
dtype: object

INSTALLED VERSIONS

commit: None
python: 3.4.1.final.0
python-bits: 64
OS: Darwin
OS-release: 13.4.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: sv_SE.UTF-8

pandas: 0.16.2
nose: 1.3.6
Cython: None
numpy: 1.9.2
scipy: 0.15.1
statsmodels: None
IPython: 3.1.0
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.4
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.4.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: 0.6.6.None
psycopg2: None

@jmenglund jmenglund changed the title convert_objects(convert_dates='coerce') fails on single-valued series BUG: convert_objects(convert_dates='coerce') fails on single-valued series Jul 3, 2015
@jreback
Copy link
Contributor

jreback commented Jul 3, 2015

dupe of #9589, and fixed in #10265

@jreback jreback closed this as completed Jul 3, 2015
@jreback jreback added Dtype Conversions Unexpected or buggy dtype conversions Duplicate Report Duplicate issue or pull request labels Jul 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants