round decimal values

2021-06-24 Thread jo
Hi, this code generate 4 values with gaussian distribution (mu=5, sigma=1): import numpy as np x = np.random.normal(5, 1, 4) print(x) Output: [5.87879753 3.29162433 3.83024698 4.92997148] I would like to round the output like this: [6, 3, 4, 5] What should I add to the code? Thank you j.

Re: round decimal values

2021-06-24 Thread jo
Il Thu, 24 Jun 2021 18:07:07 +0200, Julio Di Egidio ha scritto: > On 24/06/2021 16:23, jo wrote: >> Hi, >> >> this code generate 4 values with gaussian distribution (mu=5, sigma=1): >> >> import numpy as np x = np.random.normal(5, 1, 4) >> print(x) &

How to use Pycharm to display the stack and heap python?

2015-01-18 Thread Jo Barton
I am new to programming. Difficult for me to understand code using http://www.pythontutor.com/visualize.html#. How to use Pycharm to display the stack and heap python? -- https://mail.python.org/mailman/listinfo/python-list

Is there a OrderedDict which can perform an iteritems() in order?

2010-11-04 Thread Jo Chan
Hello all, I have working on a program which need a ordered dictionary that could perform iteritems() sequentially. I found a package on : http://www.voidspace.org.uk/python/odict.html#creating-an-ordered-dictionary

Google job leads

2010-08-01 Thread Charles Jo
move in that direction) for career-defining opportunities. If there are individuals and organizations that I should reach out to, please do let me know -- my office contact information is below. Google office: Charles Jo Sales Recruiter, Google 650.253.0375 office 408.668.4226 cell charle

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-22 Thread Jo Chan
Yeah... but actually I need something more efficient, like heap. Thank you for your help though. Best regards, Songjian On Thu, Apr 22, 2010 at 10:04 PM, Tim Golden wrote: > On 22/04/2010 14:57, Jo Chan wrote: > > Hi,friends. > > > > I wanna ask if there is a function

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-22 Thread Jo Chan
Cool! Thanks a lot! That's exactly what I want. Best regards, Songjian On Thu, Apr 22, 2010 at 10:04 PM, Chris Rebert wrote: > 2010/4/22 Jo Chan : > > Hi,friends. > > I wanna ask if there is a function which is able to take a list as > argument > > and then ret

Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-22 Thread Jo Chan
Hi,friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums? I only know about max which is poorly a top-1 maximum function, now I want more yet I am lazy enough that don't want to write one by myself. So please tell me if there is o

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Jo Chan
I want to say I just have to deal with some regular text input (the input file is as XML format) so I need to read all the nodes out and get what they are. Thanks for your great help though. I should have made my point clearer. :) On Thu, Apr 15, 2010 at 6:52 PM, Stefan Behnel wrote: > Jo C

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Jo Chan
On Thu, Apr 15, 2010 at 6:52 PM, Stefan Behnel wrote: > Jo Chan, 15.04.2010 10:52: > > I just want to get the content from a XML. > > That's not a very specific description of what you want to do. What's "the > content"? The plain text content? Or do yo

Hi,Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Jo Chan
Hi, everyone~~~ I am new. What is the most popular xml parser module used on python? Thanks for answering... -- -- Best Regards 陈松坚 信息科学与技术学院 中山大学 广州大学城 510006 Chen Songjian School of Information Science & Technology Sun Yat-sen(Zhongshan) University, Guangzhou Higher Education

starting selenium rc server from python code

2009-08-19 Thread jo
Hi, Is there anyway to start the selenium rc server within python code? Thank you Jo -- http://mail.python.org/mailman/listinfo/python-list

need help with an egg

2009-08-06 Thread jo
load links found for Myproj==0.1 error: Could not find suitable distribution for Requirement.parse ('Myproj==0.1') Thank you Jo -- http://mail.python.org/mailman/listinfo/python-list

Record Audio Analysis

2006-08-24 Thread Jo Chase
I would like to record audio from a mic and perform some basic analysis on the audio wave patterns produced. What would be the easiest way to accomplish this in Python? -- http://mail.python.org/mailman/listinfo/python-list

Re: how do i use "tkinter.createfilehandler" with a regular c program?

2005-11-14 Thread Jo Schambach
ilehandle, stateMask): Jo [EMAIL PROTECTED] wrote: > Compared to your program, I > * Made sure that the slave program actually flushed its stdout buffers > * didn't call read(), which will by default continue reading until >it reaches EOF, not merely read the avai

how do i use "tkinter.createfilehandler" with a regular c program?

2005-11-14 Thread Jo Schambach
nsert end $expect_out(0,string) .shell yview -pickplace insert } } Jo -- Dr Joachim Schambach The University of Texas at Austin Department of Physics 1 University Station C1600 Austin, Texas 78712-0264, USA Phone: (512) 471-1303; FAX: (814) 295-5111 e-mail: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

array of Tkinter variables?

2005-11-01 Thread Jo Schambach
ust' ("Configurator" is the class in which this code fragment appears) How does one define an array of StringVar? If that is not possible, what would be an alternative approach to the idea in the code fragment above? Jo -- Dr Joachim Schambach The University of Texas at Austin De

sys.exit call from pythonw.exe gives error

2005-10-27 Thread Jo Schambach
m for more information end quote What am I doint wrong here? Jo -- Dr Joachim Schambach The University of Texas at Austin Department of Physics 1 University Station C1600 Austin, Texas 78712-0264, USA Phone: (512) 471-1303; FAX: (814) 295-5111 e-mail: [EMAIL PROTECTED] --