[Tutor] File handling Tab separated files

2018-04-19 Thread Niharika Jakhar
Hi I want to store a file from BioGRID database (tab separated file, big data) into a data structure(I prefer lists, please let me know if another would be better) and I am trying to print the objects. Here’s my code: class BioGRIDReader: def __init__(self, filename): with open('fil

Re: [Tutor] File handling Tab separated files

2018-04-19 Thread Niharika Jakhar
f great help in future. :) On Thu, Apr 19, 2018 at 4:50 PM, Mats Wichmann wrote: > On 04/19/2018 07:57 AM, Wolfgang Maier wrote: > > On 04/19/2018 10:45 AM, Niharika Jakhar wrote: > >> Hi > >> I want to store a file from BioGRID database (tab separated file, big > >

Re: [Tutor] File handling Tab separated files

2018-04-25 Thread Niharika Jakhar
y-List to include the mailing list in replies. > > On 20/04/18 09:10, Niharika Jakhar wrote: > > Hi > > > > I want to store the data of file into a data structure which has 11 > > objects per line , something like this: > > 2354 somethin2 23nothin

[Tutor] tab separated file handling

2018-06-13 Thread Niharika Jakhar
hi everyone! I am working with a tsv file which has NA and empty values. I have used csv package to make a list of list of the data. I want to remove NA and empty values. This is what I wrote: #removes row with NA values for rows in self.dataline: for i in rows: