Re: [Tutor] Fwd: Newbie trying to get pip run on windows 7

2016-04-20 Thread eryk sun
On Tue, Apr 19, 2016 at 11:26 PM, Gustavo Davis via Tutor wrote: > But for some reason after I made the changes and saved them they wont > run. I mean once I go to the file and right click on them and click run > the cmd prompt pops up for a moment and then it just closes down and the > pip mo

[Tutor] R: Tutor Digest, Vol 146, Issue 23

2016-04-20 Thread jarod_v6--- via Tutor
Thanks so much!! Now I try to understand. Once I have did the matrix at absence on presence I want to subtitute the values of 1 or 0 inside the table extract some values form dictionary called tutto. ___ Tutor maillist - Tutor@python.org To unsu

Re: [Tutor] R:reformatting data and traspose dictionary

2016-04-20 Thread Peter Otten
jarod_v6--- via Tutor wrote: > Dear All, > sorry for my not good presentation of the code. > > I read a txt file and I prepare a ditionary > > files = os.listdir(".") > tutto={} > annotatemerge = {} > for i in files: By the way `i` is the one of the worst choices to denote a filename, only to

[Tutor] R:reformatting data and traspose dictionary

2016-04-20 Thread jarod_v6--- via Tutor
Dear All, sorry for my not good presentation of the code. I read a txt file and I prepare a ditionary files = os.listdir(".") tutto={} annotatemerge = {} for i in files: with open(i,"r") as f: for it in f: lines = it.rstrip("\n").split("\t")

Re: [Tutor] reformatting data and traspose dictionary

2016-04-20 Thread Steven D'Aprano
On Wed, Apr 20, 2016 at 01:18:22PM +0200, jarod_v6--- via Tutor wrote: > Hi!!! > I have this problems > I have a dictionary like this: > > [Name_file ::position] = lines That doesn't look like Python syntax. What programming language is it from? > #Samplename::chr10-43606756-C-T::['chr10', '4

Re: [Tutor] reformatting data and traspose dictionary

2016-04-20 Thread Peter Otten
jarod_v6--- via Tutor wrote: > Hi!!! > I have this problems > I have a dictionary like this: > > [Name_file ::position] = lines > > #Samplename::chr10-43606756-C-T::['chr10', '43606756', '.', 'C', 'T', > #'100.00', 'PASS', > #'DP=439;TI=NM_020630,NM_020975;GI=RET,RET;FC=Synonymous_V455V,Synony

[Tutor] reformatting data and traspose dictionary

2016-04-20 Thread jarod_v6--- via Tutor
Hi!!! I have this problems I have a dictionary like this: [Name_file ::position] = lines #Samplename::chr10-43606756-C-T::['chr10', '43606756', '.', 'C', 'T', '100.00', 'PASS', 'DP=439;TI=NM_020630,NM_020975;GI=RET,RET;FC=Synonymous_V455V,Synonymous_V455V;EXON', 'GT:GQ:AD:VF:NL:SB:GQX', '0/1

Re: [Tutor] Fwd: List of tuples

2016-04-20 Thread Alan Gauld via Tutor
On 20/04/16 06:52, isaac tetteh wrote: >> Thanks things are working good now. The only problem is >> i want to print the for loop output on one line instead of on each line. >> Example [1,2,3,4,5] >> Output >> 1 2 3 4 5 >> I would to do this in Jinja I don;t know what Jinja is but... When yo

Re: [Tutor] List of tuples

2016-04-20 Thread Alan Gauld via Tutor
On 19/04/16 21:56, isaac tetteh wrote: > I have a list like this > [ > ("name",2344,34, "boy"),("another",345,47,"boy", "last") > ] Assuming this is list_tuple... > for row in list_tuple: > for row2 in row: > return row This can't work because return needs to be inside a function.

[Tutor] Fwd: List of tuples

2016-04-20 Thread isaac tetteh
> From: isaac tetteh > Date: April 19, 2016 at 9:05:04 PM CDT > To: Danny Yoo > Subject: Re: [Tutor] List of tuples > > Thanks things are working good now. The only problem is i want to print the > for loop output on one line instead of on each line. > Example [1,2,3,4,5] > Output > 1 2 3 4 5

Re: [Tutor] List of tuples

2016-04-20 Thread isaac tetteh
This a flask app that I am connecting to the mysql @app.route("/viewSingle", methods=['POST','GET']) def SingleView(): formB=singleView() data=[] if request.method=="POST": if formB.validate_on_submit: #if request.form['submit']=="View CONTINENT": c,conn =

[Tutor] Fwd: Newbie trying to get pip run on windows 7

2016-04-20 Thread Gustavo Davis via Tutor
-- Forwarded message -- From: Gus Davis Date: Apr 19, 2016 9:53 PM Subject: Newbie trying to get pip run on windows 7 To: webmas...@python.org Cc: From: Gustavo Davis Sent: Tuesday April 19th, 2016 To: Python Org Subject: Python Module issues