Re: [Tutor] python clusters

2011-04-14 Thread nookasree ponamala
ct: Re: [Tutor] python clusters > To: tutor@python.org > Date: Thursday, April 14, 2011, 10:50 PM > > "nookasree ponamala" > wrote > > > ...trying to convert SAS code to python. this > one > > is the clustering program in SAS enterprise miner &g

Re: [Tutor] python clusters

2011-04-14 Thread nookasree ponamala
Thank you very much. This is exactly what I'm looking for. Do I have to install numpy and Scipy? It throws an error No module named numpy.   I'm completely new to Python programming, trying to convert SAS code to python. I am able to do some simple steps, but this one is the clustering program in

[Tutor] python clusters

2011-04-13 Thread nookasree ponamala
Hi I've 30 variables in a text file and I want to read this text file and create 10 clusters based on 18 variables. I want to read an other text file and find the closest match using these clusters Could you pls. help me with this. Thanks, Sree.

Re: [Tutor] Need help with dates in Python

2011-03-11 Thread nookasree ponamala
Thanks for your help Francesco. This works. Sree. --- On Fri, 3/11/11, Francesco Loffredo wrote: > From: Francesco Loffredo > Subject: Re: [Tutor] Need help with dates in Python > To: tutor@python.org > Date: Friday, March 11, 2011, 1:05 AM > On 09/03/2011 9.21, nookasree &

Re: [Tutor] Need help with dates in Python

2011-03-10 Thread nookasree ponamala
3/10/11, James Reynolds wrote: From: James Reynolds Subject: Re: [Tutor] Need help with dates in Python To: "nookasree ponamala" Cc: "Andre Engels" , tutor@python.org Date: Thursday, March 10, 2011, 2:26 AM On Wed, Mar 9, 2011 at 1:34 PM, nookasree ponamala wrote: Hi,

Re: [Tutor] Need help with dates in Python

2011-03-09 Thread nookasree ponamala
maxyr = max if t > min: minyr = min t = (a,b,maxyr,minyr) tot.append(t) print t Thanks Sree. --- On Wed, 3/9/11, Andre Engels wrote: > From: Andre Engels > Subject: Re: [Tutor] Need help with dates in Python >

[Tutor] Need help with dates in Python

2011-03-09 Thread nookasree ponamala
Hi, I need help in finding the minimum date and maximum date in a file. Here is my test file: s.no: dt1 amt id1 id2 452 2010-02-20 $23.26 05954206107 452 2010-02-05 $20.78 05954206107 451 2010-02-24 $5.99 05954220151

Re: [Tutor] calculate the sum of a variable - python

2011-03-06 Thread nookasree ponamala
Thanks a lot Marc. This works now.   Sree. --- On Mon, 3/7/11, Marc Tompkins wrote: From: Marc Tompkins Subject: Re: [Tutor] calculate the sum of a variable - python To: "nookasree ponamala" Cc: "Wayne Werner" , tutor@python.org Date: Monday, March 7, 2011, 10:54 AM On

Re: [Tutor] calculate the sum of a variable - python

2011-03-06 Thread nookasree ponamala
loat and the error is: Traceback (most recent call last):   File "", line 2, in   File "", line 3, in summary   File "", line 3, in ValueError: invalid literal for float(): '   Thanks, Sree. --- On Mon, 3/7/11, Wayne Werner wrote: From: Wayne Werner Subje

[Tutor] calculate the sum of a variable - python

2011-03-06 Thread nookasree ponamala
Hi : I'm a Senior SAS Analyst. I'm trying to learn Python. I would appreciate if anybody could help me with this. It works fine if I give input instead of reading a text file. I don't understand where I'm going wrong. I'm trying to read a text file and find out the following: 1. Sum of amt for