grasp icon indicating copy to clipboard operation
grasp copied to clipboard

Support for number of columns in CSV class

Open pandeydivesh15 opened this issue 7 years ago • 0 comments

This patch allows user to give an additional argument describing number of columns to be read from stored CSV file. for eg. test.csv contents

1,2,3,4
>>> d = csv("test.csv", n_cols = 1)
>>> d
[[u'1']]
>>> d = csv("test.csv", n_cols = 3)
>>> d
[[u'1', u'2', u'3']]
>>> d = csv("test.csv")
>>> d
[[u'1', u'2', u'3', u'4']]

pandeydivesh15 avatar Apr 03 '17 05:04 pandeydivesh15