The detection of a header was fooled when even a single title was missing

Issue #7 closed
Tim Cera repo owner created an issue

A csv file like:

Datetime,Value,,,,,,,,
2000-01-01 01:00:00, 1.5,,,,,,,,
2000-01-01 02:00:00, 2.5,,,,,,,,
2000-01-01 03:00:00, 3.4,,,,,,,,
2000-01-02 03:00:00, 3.4,,,,,,,,
2000-01-02 04:00:00, 3.4,,,,,,,,

would give:

AttributeError: 'numpy.int64' object has no attribute 'strip'

because I was trying to rename the empty column names.

Comments (2)

  1. Tim Cera reporter

    BUG: If any column title was missing from heading line would fail. Now names the column "Unnamed: 1", ...etc. closes #7 BUG: If multiple spaces in columns would through out entire column. Now just becomes a NaN for that record. closes #8 resolves #3 since now using more of the pandas functions.

    → <<cset 150f13541745>>

  2. Log in to comment