Re: Covariance matrix syntax

2020-10-12 Thread Christian Gollwitzer
Am 13.10.20 um 06:52 schrieb Meghna Karkera: Could you let me know what is the back end calculation of this covariance matrix syntax np.cov You can look it up yourself: Go to the docs https://numpy.org/doc/stable/reference/generated/numpy.cov.html At the right hand side, just right of the fun

Re: Covariance matrix syntax

2020-10-12 Thread Meghna Karkera
Could you let me know what is the back end calculation of this covariance matrix syntax np.cov On Tue, Oct 13, 2020, 10:14 Bruno P. Kinoshita wrote: > I think the np.cov is from the numpy module (imported/aliased as np?). > > If so, the numpy repository should have what you are looking for: > >

Covariance matrix syntax

2020-10-12 Thread Meghna Karkera
May I know the steps or procedure behind covariance matrix syntax, np.cov(covar_matrix) in python -- https://mail.python.org/mailman/listinfo/python-list

Re: What might cause my sample program to forget that already imported datetime?

2020-10-12 Thread dn via Python-list
On 13/10/2020 06:47, Steve wrote: Thank you, those two fixes took care of the problem. At the top of my sample program, I have: import datetime from datetime import * ... These are incompatible with each other, so you're going to get issues. I'd recommend doing just the first one, and then

RE: What might cause my sample program to forget that already imported datetime?

2020-10-12 Thread Steve
Thank you, those two fixes took care of the problem. Footnote: The only time incorrectly is spelled incorrectly is when it is spelled "incorrectly". -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Monday, October 12, 2020 6:37 AM To: Python Subject: Re: What mi

Re: Truncation error

2020-10-12 Thread Peter J. Holzer
On 2020-10-11 01:40:42 -, Grant Edwards wrote: > On 2020-10-10, Peter J. Holzer wrote: > > On 2020-10-07 07:53:55 +0200, Marco Sulla wrote: > >> If you want to avoid float problems, you can use Decimal: > > > > Decimal doesn't avoid floating point problems, because it is a floating > > point f

Re: Truncation error

2020-10-12 Thread Peter J. Holzer
On 2020-10-10 13:31:34 -0400, Dennis Lee Bieber wrote: > On Sat, 10 Oct 2020 17:58:34 +0200, "Peter J. Holzer" > declaimed the following: > > >On 2020-10-07 07:53:55 +0200, Marco Sulla wrote: > >> If you want to avoid float problems, you can use Decimal: > > > >Decimal doesn't avoid floating poin

Re: What might cause my sample program to forget that already imported datetime?

2020-10-12 Thread Richard Damon
On 10/12/20 7:20 AM, Chris Angelico wrote: > On Mon, Oct 12, 2020 at 9:58 PM Abdur-Rahmaan Janhangeer > wrote: >> Btw why a datetime in datetime? >> >> It causes much confusion. I dont know >> the design decision behind, if someone knows, it might be good to explain >> > There are quite a few modu

Re: Embedding version in command-line program

2020-10-12 Thread Loris Bennett
Hi Heinrich, Heinrich Kruger writes: > ‐‐‐ Original Message ‐‐‐ > On Thursday, October 8, 2020 2:00 PM, Loris Bennett > wrote: > >> Marco Sulla marco.sulla.pyt...@gmail.com writes: >> >> > On Wed, 7 Oct 2020 at 14:16, Loris Bennett loris.benn...@fu-berlin.de >> > wrote: >> > >> > > But

MERGE SQL in cx_Oracle executemany

2020-10-12 Thread Naveen Roy Vikkram
Hi there, I'm looking to insert values into an oracle table (my_table) using the query below. The insert query works when the PROJECT is not NULL/empty (""). However when PROJECT is an empty string(''), the query creates a new duplicate row every time the code is executed (with project value po

Your experience of backtacking during a pip install

2020-10-12 Thread Bernard Tyers - Sane UX Design
Hello there, The pip team is implementing some improvements to pip's output to deal with situations where, during a `pip install`, it needs to backtrack on package(s). To do this we need to make some decisions. We'd appreciate your input using this very short (1 question!) poll: https://saneuxde

Re: What might cause my sample program to forget that already imported datetime?

2020-10-12 Thread Chris Angelico
On Mon, Oct 12, 2020 at 9:58 PM Abdur-Rahmaan Janhangeer wrote: > > Btw why a datetime in datetime? > > It causes much confusion. I dont know > the design decision behind, if someone knows, it might be good to explain > There are quite a few modules that have one "most obvious" entrypoint, and th

Re: What might cause my sample program to forget that already imported datetime?

2020-10-12 Thread Abdur-Rahmaan Janhangeer
Btw why a datetime in datetime? It causes much confusion. I dont know the design decision behind, if someone knows, it might be good to explain I dont expect it to change anytime soon due to backward compatibility, but just for knowledge. Kind Regards, Abdur-Rahmaan Janhangeer https://www.git

Re: What might cause my sample program to forget that already imported datetime?

2020-10-12 Thread Chris Angelico
On Mon, Oct 12, 2020 at 9:14 PM Steve wrote: > > At the top of my sample program, I have: > > import datetime > from datetime import * > > But import datetime also has to be entered on line 21 as shown. > The error is printed at the bottom of the code. > Why does the code seem to forget that I hav

Re: What might cause my sample program to forget that already imported datetime?

2020-10-12 Thread Joel Goldstick
On Mon, Oct 12, 2020 at 6:14 AM Steve wrote: > > At the top of my sample program, I have: > > import datetime > from datetime import * This second import tramples on the first. What happens if you remove it? > > But import datetime also has to be entered on line 21 as shown. > The error is print

What might cause my sample program to forget that already imported datetime?

2020-10-12 Thread Steve
At the top of my sample program, I have: import datetime from datetime import * But import datetime also has to be entered on line 21 as shown. The error is printed at the bottom of the code. Why does the code seem to forget that I have already imported datetime? =