Skip to content

dtype <class 'pandas._libs.tslib.Timestamp'> not understood #2

@nebain

Description

@nebain

When trying out the basic code:

import rasppy.convert as rasp

rws = '/mnt/remote/meso2-storage1/archive/profiler/lidar_raw/PROF_CHAZ/2017/08/20170814_whole_radial_wind_data.csv'
scan = '/mnt/remote/meso2-storage1/archive/profiler/lidar_raw/PROF_CHAZ/2017/08/20170814_scan.xml'
wind = '/mnt/remote/meso2-storage1/archive/profiler/lidar_raw/PROF_CHAZ/2017/08/20170814_reconstruction_wind_data.csv'

lidar = rasp.lidar_from_csv(rws, scans=scan, wind=wind)

I get:

Traceback (most recent call last):
  File "test.py", line 7, in <module>
    lidar = rasp.lidar_from_csv(rws, scans=scan, wind=wind)
  File "/home/nbain/rasppy/raspPy/rasppy/convert.py", line 49, in lidar_from_csv
    csv = pd.read_csv(rws, dtype=dtypes)
  File "/home/nbain/temp-python3.5/lib/python3.5/site-packages/pandas/io/parsers.py", line 655, in parser_f
    return _read(filepath_or_buffer, kwds)
  File "/home/nbain/temp-python3.5/lib/python3.5/site-packages/pandas/io/parsers.py", line 405, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)
  File "/home/nbain/temp-python3.5/lib/python3.5/site-packages/pandas/io/parsers.py", line 764, in __init__
    self._make_engine(self.engine)
  File "/home/nbain/temp-python3.5/lib/python3.5/site-packages/pandas/io/parsers.py", line 985, in _make_engine
    self._engine = CParserWrapper(self.f, **self.options)
  File "/home/nbain/temp-python3.5/lib/python3.5/site-packages/pandas/io/parsers.py", line 1605, in __init__
    self._reader = parsers.TextReader(src, **kwds)
  File "pandas/_libs/parsers.pyx", line 513, in pandas._libs.parsers.TextReader.__cinit__ (pandas/_libs/parsers.c:5654)
  File "/home/nbain/temp-python3.5/lib/python3.5/site-packages/pandas/core/dtypes/common.py", line 1912, in pandas_dtype
    raise TypeError('dtype {0} not understood'.format(dtype))
TypeError: dtype <class 'pandas._libs.tslib.Timestamp'> not understood

This is with Python 3.5.3 and pandas 0.20.3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions