Thanks in advance for the help.
I'm relatively new to python and am trying to write a python script to load partial csv files from 1000 files. For example, I have 1000 files that have this format
numpy.fromregex(file, r'^' + re.compile(str(mynum)) + r'\,\-\d$', dtype='f');
Try pandas library. It has an interoperability with numpy and way more flexible. With this library you do next thing:
data = pandas.read_csv('file.csv') # keep only rows with x equals to 2 data = data[data['x'] == 2] # convert to numpy array arr = numpy.asarray(data)
You can read more about selecting data with here.