Re: [Tutor] I-Phone App in Python?

2012-08-04 Thread Fred G
; batch file works > >> os.system("reg add HKEY_CURRENT_USER\Software .(etc)") > >> > >> Why is this not working using Python? Is there a built-in way to do > this (I > >> don't have win32api)? > > > >Wouldn't it be simpler

[Tutor] I-Phone App in Python?

2012-08-03 Thread Fred G
I just googled whether it is possible to write an i-phone app in Python and got very confusing, and not super good results. Is it possible? And if so, what module(s) do I need to install? Much thanks! ___ Tutor maillist - Tutor@python.org To unsubscri

[Tutor] Rapidly Importing CSVs with Python into MySQL

2012-07-20 Thread Fred G
Hi-- This question has to do with MySQL but is fundamentally a python question, so apologies if it seems tangential initially... I've written a long python file that creates all the tables in database UN. Here is the first few lines: import MySQLdb as mysql statement = """CREATE DATABASE UN""" d

[Tutor] Accessing a Website

2012-07-12 Thread Fred G
Hi-- My pseudocode is the following new_dictionary = [] for name in file: #1) log into university account #2) go to website with data #3) type in search box: name #4) click search #5) if name is exact match with name of one of the hits: line.find("Code Number") #6) remove the number

Re: [Tutor] Mapping ID's for corresponding values in different Columns

2012-07-09 Thread Fred G
Sorry, just got that as well. It was the placement of the if-statement in the nested for-loop. so v was stuck on 3...thanks again for the help with this!!! On Mon, Jul 9, 2012 at 1:57 PM, Fred G wrote: > Got it! Thanks guys for all your help--what a satisfying feeling! Just >

Re: [Tutor] Mapping ID's for corresponding values in different Columns

2012-07-09 Thread Fred G
rrect output (ie the different ID's). Does anyone know why this was the case? Thanks so much. On Mon, Jul 9, 2012 at 8:23 AM, Fred G wrote: > Thank you guys so much. I'm quite close now, but I'm having a bit of > trouble on the final for-loop to create the new dictionary. I h

Re: [Tutor] Mapping ID's for corresponding values in different Columns

2012-07-09 Thread Fred G
sh line. On Mon, Jul 9, 2012 at 12:42 AM, Hugo Arts wrote: > On Sun, Jul 8, 2012 at 11:47 PM, Fred G wrote: > >> Hi-- >> >> My current input looks like the following: >> >> FILE1.csv >> PERSON_IDPERSON_NAME >> 1 Jen >

Re: [Tutor] Mapping ID's for corresponding values in different Columns (UPDATE)

2012-07-08 Thread Fred G
key1 Jim key100 Mike key3 Jane key989 Todd etc... etc... On Sun, Jul 8, 2012 at 2:47 PM, Fred G wrote: > Hi-- > > My current input looks like the following: > > FILE1.csv > PERSON_IDPERSON_NAME > 1

[Tutor] Mapping ID's for corresponding values in different Columns

2012-07-08 Thread Fred G
Hi-- My current input looks like the following: FILE1.csv PERSON_IDPERSON_NAME 1 Jen 2 Mike 3 Jim 4 5 Jane 6 Joe 7 Jake FILE2.csv PERSON_ID PERSON_NAME

[Tutor] quick data structures question

2011-09-20 Thread Fred G
Hey guys, I want to write a short script that takes from an input excel file w/ a bunch of rows and columns. The two columns I'm interested in are "high gains" and "genes." I want the user to write: >>>Which genes are associated with gains over 20%? and then I want the script to search through

Re: [Tutor] Medical Decision-Making Question

2011-06-13 Thread Fred G
Thanks guys for all the feedback. re Jim's comments: I completely agree that the difference b/t "slight" fever and "returning" fever, etc will pose some problems. My hunch is that initially I'll just do something like make "fever" be the only one for now w/ the obvious caveat that a few more dise

[Tutor] Medical Decision-Making Question

2011-06-13 Thread Fred G
Hello-- I'm a pre-med student interested in decision-making as applied to medical decisions. I am trying to build a medical decision-making algorithm and am pretty stuck on a few things. I've built a file that contains a list of many diseases and their associated symptoms. For example, here are