Showing results 1 to 7 of 7
Search took 0.00 seconds.
Posts Made By: db_ozbecool
Forum: Python Aug 31st, 2008
Replies: 9
Views: 695
Posted By db_ozbecool
Re: Python - statistical functions + a list

RE: stats.py :
http://code.google.com/p/python-statlib/ and http://www.nmr.mgh.harvard.edu/Neural_Systems_Group/gary/python.html is buggy - eg. it does not calculate PERCENTILE even close to th...
Forum: Python Aug 28th, 2008
Replies: 9
Views: 695
Posted By db_ozbecool
Re: Python - statistical functions + a list

thanks for modules lists. I still do not know how to get to statistics functions.

On http://docs.python.org/modindex.html I do no see anything for statistics

Web search with "statistics module...
Forum: Python Aug 26th, 2008
Replies: 9
Views: 695
Posted By db_ozbecool
Python - statistical functions + a list

1. Does Python have some built in statistical functions - eg. like PERCENTILE, Root Mean Square etc ?

I tried Python help and the web, to no avail. I checked standard Python maths functions and...
Forum: Python Jul 17th, 2008
Replies: 7
Views: 394
Posted By db_ozbecool
getting a variable name - catching a literal data passed

One more thing :
How to catch (inside my_func()) a situation of receiving a literal value instead of a variable name:
my_func(test_var, vars()) --- > my_func(123, vars())

thus avoiding...
Forum: Python Jul 16th, 2008
Replies: 7
Views: 394
Posted By db_ozbecool
Re: getting a variable name

Great thanks for the time you spent on it. Most appreciated. BTW: where can I find explanation of what this is (from your code above):

... = [key .... ]

i.e. [ followed by a reserved word
Forum: Python Jul 15th, 2008
Replies: 7
Views: 394
Posted By db_ozbecool
Re: getting a variable name

thanks for a reply but can you re-write the mvar = ... line in more 'beginners' friendly format ? :
mvar = [key for key, val in main_var.items() if val==aaa][0]

i.e. few separate lines so that I...
Forum: Python Jul 15th, 2008
Replies: 7
Views: 394
Posted By db_ozbecool
getting a variable name

How to get the NAME of the passed parameter ?
Eg. in the example below how to get printed , inside my_func() , value = "test_var"


def my_func(aaa):
print aaa # <---- this will print the VALUE...
Showing results 1 to 7 of 7

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 1:09 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC