I have a csv file, and I try to open with
def datetime_from_str(string):
return dt.datetime.strptime(string, '%Y-%m-%d %H:%M:%S')
def main():
data = genfromtxt(
csv_name, delimiter=';', skip_header=1, dtype=None,
names=col_names, converters={'fecha':datetime_from_str}
)
but, when I try to call one column
print type(data), data[:,1]
I get this error
<type 'numpy.ndarray'>
Traceback (most recent call last):
...
IndexError: too many indices