From 5c4545b2bb11165c57e099c9da7450ad796e4c4b Mon Sep 17 00:00:00 2001 From: jreback Date: Tue, 28 Jan 2014 07:44:40 -0500 Subject: [PATCH] BUG: Bug in DataFrame construction with recarray and non-ns datetime dtype (GH6140) --- doc/source/release.rst | 1 + pandas/core/common.py | 36 ++++++++++++++++++++++++++++++------ pandas/core/series.py | 5 ++++- pandas/tests/test_frame.py | 24 ++++++++++++++++++++++-- 4 files changed, 57 insertions(+), 9 deletions(-) diff --git a/doc/source/release.rst b/doc/source/release.rst index 2d21f52d6b4cd..7e11a0b036a6c 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -164,6 +164,7 @@ Bug Fixes index/columns (:issue:`6121`) - Bug in ``DataFrame.apply`` when using mixed datelike reductions (:issue:`6125`) - Bug in ``DataFrame.append`` when appending a row with different columns (:issue:`6129`) + - Bug in DataFrame construction with recarray and non-ns datetime dtype (:issue:`6140`) pandas 0.13.0 ------------- diff --git a/pandas/core/common.py b/pandas/core/common.py index 30ce5166b71e7..5b82f6e140b6b 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -41,9 +41,7 @@ class AmbiguousIndexError(PandasError, KeyError): _POSSIBLY_CAST_DTYPES = set([np.dtype(t).name - for t in ['M8[ns]', '>M8[ns]', 'm8[ns]', '