Skip to content

test_select_dtypes_not_an_attr_but_still_valid_dtype ValueError: 'timedelta64[ns]' is too specific of a frequency, try passing 'timedelta64' #7694

@yarikoptic

Description

@yarikoptic

0.14.0+git393-g959e3e4 building on not so recent ones (32bit builds are failing on that another one while testing for python2, so never see this one on python3)

======================================================================
ERROR: test_select_dtypes_not_an_attr_but_still_valid_dtype (pandas.tests.test_frame.TestDataFrame)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/buildd/pandas-0.14.0+git393-g959e3e4/debian/tmp/usr/lib/python3/dist-packages/pandas/tests/test_frame.py", line 13054, in test_select_dtypes_not_an_attr_but_still_valid_dtype
    r = df.select_dtypes(include=['i8', 'O', 'timedelta64[ns]'])
  File "/tmp/buildd/pandas-0.14.0+git393-g959e3e4/debian/tmp/usr/lib/python3/dist-packages/pandas/core/frame.py", line 1946, in select_dtypes
    selection)
  File "/tmp/buildd/pandas-0.14.0+git393-g959e3e4/debian/tmp/usr/lib/python3/dist-packages/pandas/core/frame.py", line 1945, in <lambda>
    frozenset(map(com._get_dtype_from_object, x)),
  File "/tmp/buildd/pandas-0.14.0+git393-g959e3e4/debian/tmp/usr/lib/python3/dist-packages/pandas/core/common.py", line 1650, in _get_dtype_from_object
    return _get_dtype_from_object(np.dtype(dtype))
  File "/tmp/buildd/pandas-0.14.0+git393-g959e3e4/debian/tmp/usr/lib/python3/dist-packages/pandas/core/common.py", line 1635, in _get_dtype_from_object
    _validate_date_like_dtype(dtype)
  File "/tmp/buildd/pandas-0.14.0+git393-g959e3e4/debian/tmp/usr/lib/python3/dist-packages/pandas/core/common.py", line 1613, in _validate_date_like_dtype
    % (dtype.name, dtype.type.__name__))
ValueError: 'timedelta64[ns]' is too specific of a frequency, try passing 'timedelta64'
pandas_0.14.0+git393-g959e3e4-1~nd12.04+1_amd64.build:ERROR: test_select_dtypes_not_an_attr_but_still_valid_dtype (pandas.tests.test_frame.TestDataFrame)
pandas_0.14.0+git393-g959e3e4-1~nd12.10+1_amd64.build:ERROR: test_select_dtypes_not_an_attr_but_still_valid_dtype (pandas.tests.test_frame.TestDataFrame)
pandas_0.14.0+git393-g959e3e4-1~nd70+1_amd64.build:ERROR: test_select_dtypes_not_an_attr_but_still_valid_dtype (pandas.tests.test_frame.TestDataFrame)
INSTALLED VERSIONS
------------------
commit: None
python: 3.2.3.final.0
python-bits: 64
OS: Linux
OS-release: 3.2.0-4-amd64
machine: x86_64
processor: 
byteorder: little
LC_ALL: C
LANG: C

pandas: 0.14.0.dev
nose: 1.1.2
Cython: None
numpy: 1.6.2
scipy: 0.10.1
statsmodels: None
IPython: None
sphinx: 1.1.3
patsy: None
scikits.timeseries: None
dateutil: 2.0
pytz: 2012c
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.1.0
html5lib: None
httplib2: None
apiclient: None
rpy2: None
sqlalchemy: None
pymysql: None
psycopg2: None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Testingpandas testing functions or related to the test suite

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions