-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC/BUG: pd.to_datetime example produces different results from documentation #14448
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
Comments
I'm guessing this was a side effect of #10674. I'm actually in favor of the new behavior - makes it much more obvious there is a problem, but I suppose this behavior might have been useful in some cases. |
the doc-string needs to be updated to use
|
@jreback - oh, I see, I had tried without the format, which I guess never returned a plain datetime, so agree it's just docs
|
It is a bit inconsistent that the return type changes on whether
|
…for out-of-bounds timestamps with errors='ignore' closes pandas-dev#14448 Author: Keshav Ramaswamy <[email protected]> Author: Keshav Ramaswamy <[email protected]> Closes pandas-dev#14452 from keshavramaswamy/master and squashes the following commits: 5468fc5 [Keshav Ramaswamy] added link to timestamp limitations in docstring 3aa78cf [Keshav Ramaswamy] edit docstring to fit python standards 8bfa58e [Keshav Ramaswamy] edited docstring to fit python standards 5ed8ef5 [Keshav Ramaswamy] edut docstring to fit Python Standards 7402de4 [Keshav Ramaswamy] edited docstring to fit python standards c16ad6b [Keshav Ramaswamy] added timestamp limitations and default behavior to docstring 0db07b5 [Keshav Ramaswamy] updated docstring in .to_datetime() (cherry picked from commit 18fba53)
A small, complete example of the issue
referring too http://pandas.pydata.org/pandas-docs/stable/generated/pandas.to_datetime.html
The example provides different results.
raises...
Expected Output
(according to example in docs)
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.0
nose: 1.3.7
pip: 8.1.2
setuptools: 28.0.0
Cython: 0.24.1
numpy: 1.11.2
scipy: 0.18.1
statsmodels: 0.6.1
xarray: 0.8.2
IPython: 5.1.0
sphinx: 1.4.8
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.7
blosc: 1.4.1
bottleneck: 1.1.0
tables: None
numexpr: 2.6.0
matplotlib: 1.5.3
openpyxl: 2.4.0
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.3
lxml: 3.6.4
bs4: 4.5.0
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.1.0
pymysql: 0.7.9.None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: