Re: [Tutor] File handling Tab separated files

2018-04-25 Thread Niharika Jakhar
hi again when I #print (self.organismA) under the for x in self.results: , it results in what it is supposed to be. But when i print it in the below function, it gives some garbage value. Kindly let me know what is wrong. :) import functools import csv import time start =time.time() class B

Re: [Tutor] File handling Tab separated files

2018-04-20 Thread Alan Gauld via Tutor
Use Reply-All or Reply-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 23nothing       23214. > > > so I

Re: [Tutor] File handling Tab separated files

2018-04-19 Thread Alan Gauld via Tutor
On 19/04/18 17:50, Niharika Jakhar wrote: > Hi again > I tried re-writing the code with all your advices(i assume to cover all of > them). I have extended the code a little bit to store the data in the form > of lists and am trying to access it. > I also changed the file name to BioGRID.txt > > He

Re: [Tutor] File handling Tab separated files

2018-04-19 Thread Niharika Jakhar
Hi again I tried re-writing the code with all your advices(i assume to cover all of them). I have extended the code a little bit to store the data in the form of lists and am trying to access it. I also changed the file name to BioGRID.txt Here's what I wrote(Please ignore the identation, there wa

Re: [Tutor] File handling Tab separated files

2018-04-19 Thread Mats Wichmann
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 >> data) >> into a data structure(I prefer lists, please let me know if another would >> be better) and I am trying to print

Re: [Tutor] File handling Tab separated files

2018-04-19 Thread Wolfgang Maier
On 04/19/2018 10:45 AM, Niharika Jakhar wrote: 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 __

Re: [Tutor] File handling Tab separated files

2018-04-19 Thread Steven D'Aprano
On Thu, Apr 19, 2018 at 10:45:07AM +0200, Niharika Jakhar wrote: > 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. You should probably loo