I am using the read_table command in pandas/Python to import a tab-delimited text file.
q_data_1 = pd.read_table('data.txt', skiprows=6, dtype={'numbers': np.float64})
...but get
AttributeError: 'NoneType' object has no attribute 'dtype'
Without the dtype parameter, the column is imported as an 'object' dtype.
The 'numbers' column I think has missing data which trips up the import. How do I ignore these values?
EDIT (25-May-13): Any idea how to do this with columns that contain (i) time (e.g. '00:03:06') (ii) date (e.g. '2002-03-11') and percentages ('32.81%')? All of which convert to objects. (I have edited Q to reflect) (iv) numbers with commas (e.g. '10,982') to convert them to appropriate dtype?