I've used pandas.read_csv to load in a file.
I've stored the file into a variable. The first column is a series of numbers separated by a comma (,) I want to split these numbers, and put each number to a new column.
I can't seem to find the write functionality for pandas.dataframe.
Side Note I would prefer a different library for loading in my file, but pandas provides some other different functionality which I need.
My Code:
Data = pandas.read_csv(pathFile,header=None)
doing: print Data
gives me:
0 1 2 ...
0 [2014, 8, 26, 5, 30, 0.0] 0 0.25 ...
(as you can see its a date)
Question: How to split/separate each number and save it in a new array
p.s. I'm trying to achieve the same thing the matlab method datevec()
does