Convert a scientific notation to decimal number, and still keeping the data format as float64

2019-10-18 Thread doganadres
Here is my question: I am using the numpy.std formula to calculate the standart deviation. However, the result comes as a number in scientific notation. Therefore I am asking, How to convert a scientific notation to decimal number, and still keep the data format as float64 ? Or is there any

Re: Convert a scientific notation to decimal number, and still keeping the data format as float64

2019-10-18 Thread Richard Damon
On 10/18/19 4:35 AM, doganad...@gmail.com wrote: > Here is my question: > > > I am using the numpy.std formula to calculate the standart deviation. > However, the result comes as a number in scientific notation. > Therefore I am asking, How to convert a scientific notation to decimal > number, an

Re: Convert a scientific notation to decimal number, and still keeping the data format as float64

2019-10-18 Thread Gys
On 10/18/19 10:35 AM, doganad...@gmail.com wrote: Here is my question: I am using the numpy.std formula to calculate the standart deviation. However, the result comes as a number in scientific notation. Therefore I am asking, How to convert a scientific notation to decimal number, and still

Re: Convert a scientific notation to decimal number, and still keeping the data format as float64

2019-10-18 Thread doganadres
On Friday, October 18, 2019 at 2:46:42 PM UTC+3, Gys wrote: > On 10/18/19 10:35 AM, doganad...@gmail.com wrote: > > > > Here is my question: > > > > > > I am using the numpy.std formula to calculate the standart deviation. > > However, the result comes as a number in scientific notation. > > Th

Re: Convert a scientific notation to decimal number, and still keeping the data format as float64

2019-10-18 Thread doganadres
On Friday, October 18, 2019 at 2:21:34 PM UTC+3, Richard Damon wrote: > On 10/18/19 4:35 AM, doganad...@gmail.com wrote: > > Here is my question: > > > > > > I am using the numpy.std formula to calculate the standart deviation. > > However, the result comes as a number in scientific notation. > >

Re: Convert a scientific notation to decimal number, and still keeping the data format as float64

2019-10-18 Thread Richard Damon
On 10/18/19 8:52 AM, doganad...@gmail.com wrote: > On Friday, October 18, 2019 at 2:46:42 PM UTC+3, Gys wrote: >> On 10/18/19 10:35 AM, doganad...@gmail.com wrote: >>> Here is my question: >>> >>> >>> I am using the numpy.std formula to calculate the standart deviation. >>> However, the result com

Re: Convert a scientific notation to decimal number, and still keeping the data format as float64

2019-10-18 Thread Richard Damon
On 10/18/19 9:03 AM, doganad...@gmail.com wrote: > On Friday, October 18, 2019 at 2:21:34 PM UTC+3, Richard Damon wrote: >> On 10/18/19 4:35 AM, doganad...@gmail.com wrote: >>> Here is my question: >>> >>> >>> I am using the numpy.std formula to calculate the standart deviation. >>> However, the r

Re: Convert a scientific notation to decimal number, and still keeping the data format as float64

2019-10-18 Thread doganadres
On Friday, October 18, 2019 at 4:17:51 PM UTC+3, Richard Damon wrote: > On 10/18/19 9:03 AM, doganad...@gmail.com wrote: > > On Friday, October 18, 2019 at 2:21:34 PM UTC+3, Richard Damon wrote: > >> On 10/18/19 4:35 AM, doganad...@gmail.com wrote: > >>> Here is my question: > >>> > >>> > >>> I am

Re: Convert a scientific notation to decimal number, and still keeping the data format as float64

2019-10-18 Thread Chris Angelico
On Sat, Oct 19, 2019 at 12:51 AM wrote: > By taking the default OUTPUT of a numpy formula, in my case standart > deviation, I am using the advantage of saving the result into an excel file > without any problems.(they come as numpy.float64) From there, The excel takes > all the things as they a

Re: Convert a scientific notation to decimal number, and still keeping the data format as float64

2019-10-18 Thread Richard Damon
On 10/18/19 9:45 AM, doganad...@gmail.com wrote: > On Friday, October 18, 2019 at 4:17:51 PM UTC+3, Richard Damon wrote: >> On 10/18/19 9:03 AM, doganad...@gmail.com wrote: >>> On Friday, October 18, 2019 at 2:21:34 PM UTC+3, Richard Damon wrote: On 10/18/19 4:35 AM, doganad...@gmail.com wrote

Asking for feedback: Mirror GitHub issues with a static site generator

2019-10-18 Thread Vitaly Potyarkin
Hello, I'm looking to get some feedback on my project. It's a backup mechanism for GitHub issues and pull requests that creates human-readable issue archives in HTML - ready to be served as a static web site. The project is written in Python and works by extending Pelican static site generator, it

Re: Convert a scientific notation to decimal number, and still keeping the data format as float64

2019-10-18 Thread doganadres
On Friday, October 18, 2019 at 4:55:33 PM UTC+3, Chris Angelico wrote: > On Sat, Oct 19, 2019 at 12:51 AM wrote: > > By taking the default OUTPUT of a numpy formula, in my case standart > > deviation, I am using the advantage of saving the result into an excel file > > without any problems.(they

Re: Convert a scientific notation to decimal number, and still keeping the data format as float64

2019-10-18 Thread doganadres
On Friday, October 18, 2019 at 5:53:24 PM UTC+3, Richard Damon wrote: > On 10/18/19 9:45 AM, doganad...@gmail.com wrote: > > On Friday, October 18, 2019 at 4:17:51 PM UTC+3, Richard Damon wrote: > >> On 10/18/19 9:03 AM, doganad...@gmail.com wrote: > >>> On Friday, October 18, 2019 at 2:21:34 PM UT

Print formatting

2019-10-18 Thread Jagga Soorma
Hello, I am new to python and trying to write a script that outputs some data about users. I was able to write it and dump the data but can't seem to align the output in column 2 correctly. Here is what I am trying to do: -- output: user1 data1 username2 data2 user3 data3 s

Re: Print formatting

2019-10-18 Thread MRAB
On 2019-10-18 18:03, Jagga Soorma wrote: Hello, I am new to python and trying to write a script that outputs some data about users. I was able to write it and dump the data but can't seem to align the output in column 2 correctly. Here is what I am trying to do: -- output: user1 data1 use

Re: Print formatting

2019-10-18 Thread Jagga Soorma
I seem to have found a way to do this with the following: print('{:<12s}{:>12s}'.format((temp_list[0]),(temp_list[3]))) Still let me know if there is a better way to format this output :) Thanks, -J On Fri, Oct 18, 2019 at 10:03 AM Jagga Soorma wrote: > > Hello, > > I am new to python and try

python2 vs python3

2019-10-18 Thread Jagga Soorma
Hello, I am writing my second python script and got it to work using python2.x. However, realized that I should be using python3 and it seems to fail with the following message: -- Traceback (most recent call last): File "test_script.py", line 29, in test_cmd = ("diskcmd -u " + x + " | gr

Re: Asking for feedback: Mirror GitHub issues with a static site generator

2019-10-18 Thread Chris Angelico
On Sat, Oct 19, 2019 at 2:25 AM Vitaly Potyarkin wrote: > It's a backup mechanism for GitHub issues and pull requests that creates > human-readable issue archives in HTML - ready to be served as a static web > site. The project is written in Python and works by extending Pelican > static site gene

Re: python2 vs python3

2019-10-18 Thread Chris Angelico
On Sat, Oct 19, 2019 at 5:29 AM Jagga Soorma wrote: > > Hello, > > I am writing my second python script and got it to work using > python2.x. However, realized that I should be using python3 and it > seems to fail with the following message: > > -- > Traceback (most recent call last): > File "t

Re: Convert a scientific notation to decimal number, and still keeping the data format as float64

2019-10-18 Thread Thomas Jollans
On 18/10/2019 10:35, doganad...@gmail.com wrote: Here is my question: I am using the numpy.std formula to calculate the standart deviation. However, the result comes as a number in scientific notation. Therefore I am asking, How to convert a scientific notation to decimal number, and still ke

Re: Print formatting

2019-10-18 Thread D'Arcy Cain
On 10/18/19 2:21 PM, Jagga Soorma wrote: I seem to have found a way to do this with the following: print('{:<12s}{:>12s}'.format((temp_list[0]),(temp_list[3]))) Still let me know if there is a better way to format this output :) I would start with removing the redundant parens. print('{:<1

Re: Print formatting

2019-10-18 Thread D'Arcy Cain
On 10/18/19 5:00 PM, D'Arcy Cain wrote: Finally, if this is in a loop do this. FMT = '{0[0]:<12s}{0[3]:>12s}'.format for temp_list in GetLists(): print FMT(temp_list) Oops. Time warp. I meant "print(FMT(temp_list)) -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...

Re: Instantiating sub-class from super

2019-10-18 Thread DL Neil via Python-list
On 16/10/19 6:33 PM, Frank Millman wrote: On 2019-10-14 10:55 PM, DL Neil via Python-list wrote: Is there a technique or pattern for taking a (partially-) populated instance of a class, and re-creating it as an instance of one of its sub-classes? Here is a link to an article entitled 'Underst

Re: Instantiating sub-class from super

2019-10-18 Thread DL Neil via Python-list
On 17/10/19 4:08 AM, Piet van Oostrum wrote: DL Neil writes: That said, if a "trans" person has ovaries or testes (for example) then a non-traditional sexual identification is irrelevant - for medical purposes. Diseases in those areas (and now I'm a long way from a research questionnaire and f

Re: Instantiating sub-class from super

2019-10-18 Thread DL Neil via Python-list
On 17/10/19 7:52 AM, MRAB wrote: On 2019-10-16 19:43, duncan smith wrote: On 16/10/2019 04:41, DL Neil wrote: On 16/10/19 1:55 PM, duncan smith wrote: On 15/10/2019 21:36, DL Neil wrote: On 16/10/19 12:38 AM, Rhodri James wrote: On 14/10/2019 21:55, DL Neil via Python-list wrote: ... So, ye

Re: Instantiating sub-class from super

2019-10-18 Thread DL Neil via Python-list
On 18/10/19 9:27 AM, Eryk Sun wrote: On 10/17/19, MRAB wrote: On 2019-10-17 20:06, Eryk Sun wrote: I'm bugged by how the article mis-characterizes the fundamental problem. The operating system has nothing to do with the order of a directory listing, which varies even with an OS, depending on

A news aggregator for the Python community

2019-10-18 Thread Sebastian Steins
Hi! Over the last few weeks I've build a hacker news clone for the Python community: https://news.python.sc The source is at github.com/sebst/pythonic-news I thought that might be of interest to you and I'd be more than happy to hear your thoughts on this. Best, --Sebastian -- https://mail.