Re: Truncation error

2020-10-11 Thread Meghna Karkera
May I request you to let me know the steps python follows in order to compute covariance matrix using the inbuilt syntax. np.cov(cov_mat) . >>cov_mat = np.stack((x, y), axis = 0) >>np.cov(cov_mat) On Sun, Oct 11, 2020 at 9:14 AM Grant Edwards wrote: > On 2020-10-10, Peter J. Holzer wrote: > >

Re: Python's carbon guilt

2020-10-11 Thread Michael Torrie
On 10/10/20 9:58 AM, Peter Pearson wrote: > Python advocates might want to organize their thoughts on > this subject before their bosses spring the suggestion: > > From > https://www.sciencemag.org/news/2020/10/we-re-part-problem-astronomers-confront-their-role-and-vulnerability-climate-change >

RE: Problem saving datetime to file and reading it back for a calculation

2020-10-11 Thread Steve
Thanks for the response. I must have spent hours looking on-line for a method to treat datetime variables yet not one site mentioned the "pickle" module you indicatged. I did, however solve my problem. It may be a kluge but it seems to work. I learned that I cannot use print() to display the va

Re: Problem saving datetime to file and reading it back for a calculation

2020-10-11 Thread MRAB
On 2020-10-11 20:25, Steve wrote: Thanks for the response. I must have spent hours looking on-line for a method to treat datetime variables yet not one site mentioned the "pickle" module you indicatged. I did, however solve my problem. It may be a kluge but it seems to work. I learned that I

RE: Problem saving datetime to file and reading it back for a calculation

2020-10-11 Thread Steve
Thanks for the responses. Somehow, all of my python messages were shifted into the deleted folder so I missed all of them until I caught the one from MRAB. I will sift through them and probably update my technique to use seconds as suggested. Still, I enjoyed the kluge I created making it work b

numpy covariance (was Re: Truncation error)

2020-10-11 Thread Terry Reedy
On 10/11/2020 8:17 AM, Meghna Karkera wrote: May I request you to let me know the steps python follows in order to compute covariance matrix using the inbuilt syntax. > np.cov(cov_mat) 1. When starting a new topic, start a new thread with a new topic. 2. Questions about the internals of a 3r

FW: NEED SOLUTION FOR ERROR

2020-10-11 Thread hey
Sent from Mail for Windows 10 From: hey Sent: Saturday, October 10, 2020 7:40 PM To: python-list@python.org Subject: NEED SOLUTION FOR ERROR I am Akshat Sharma one of python user from INDIA . I am facing problem in getting pip installed. When I am trying to install a module using PIP it show

Re: FW: NEED SOLUTION FOR ERROR

2020-10-11 Thread MRAB
On 2020-10-11 09:13, hey wrote: Sent from Mail for Windows 10 From: hey Sent: Saturday, October 10, 2020 7:40 PM To: python-list@python.org Subject: NEED SOLUTION FOR ERROR I am Akshat Sharma one of python user from INDIA . I am facing problem in getting pip installed. When I am trying to in

Fwd: Truncation error

2020-10-11 Thread Meghna Karkera
May I request you to let me know the steps python follows in order to compute covariance matrix using the inbuilt syntax. np.cov(cov_mat) . >>cov_mat = np.stack((x, y), axis = 0) >>np.cov(cov_mat) On Sun, Oct 11, 2020 at 9:14 AM Grant Edwards wrote: > On 2020-10-10, Peter J. Holzer wrote: > >

Re: Problem saving datetime to file and reading it back for a calculation

2020-10-11 Thread Cameron Simpson
On 11Oct2020 20:39, Steve wrote: >Still, I enjoyed the kluge I created making it work based on discovery... Poking around in the datetime module will definitely make you aware of its power, and its pitfalls. Well worth doing. At the very least you'll usually want it when printing times out for hu