Re: Covariance matrix syntax

2020-10-19 Thread Markos
://tinyurl.com/y29mule6 https://tinyurl.com/yxtg4tce Best Regards, Markos Em 19-10-2020 02:23, Meghna Karkera escreveu: Dear Sir I am unable to find the *formula for covariance* used in np.cov syntax in PYTHON given in link https://numpy.org/doc/stable/reference/generated/numpy.cov.html. Could you

Errors in testing the SciPy installation

2020-02-22 Thread Markos
d I do? Thank you, Markos -- https://mail.python.org/mailman/listinfo/python-list

Re: I can't access dataframe fields

2020-02-17 Thread Markos
Hi MRAB, I changed last_cluster to tuple(last_cluster). From: print (updated_distance_matrix_df.loc [clusters [i], last_cluster]) to print (updated_distance_matrix_df.loc [clusters [i], tuple(last_cluster)]) And worked. Thank you, Markos Em 15-02-2020 23:36, MRAB escreveu: On 2020-02

I can't access dataframe fields

2020-02-15 Thread Markos
rs [i], last_cluster]) gives the error: TypeError: unhashable type: 'list' A last_cluster variable is of type list: print (last_cluster, type (last_cluster)) ['P3', 'P6'] And a variable cluster [i] is a string: print (clusters [i], type (clusters [i])) P5 Any tip? Thank you, Markos -- htt

Re: Most efficient way to replace ", " with "." in a array and/or dataframe

2019-09-22 Thread Markos
Em 22-09-2019 13:10, Piet van Oostrum escreveu: Markos writes: Hi, I have a table.csv file with the following structure: , Polyarene conc ,, mg L-1 ,,, Spectrum, Py, Ace, Anth, 1, "0,456", "0,120", "0,168" 2, "0,456", "0,040", "0

Re: Most efficient way to replace ", " with "." in a array and/or dataframe

2019-09-22 Thread Markos
Em 22-09-2019 13:10, Piet van Oostrum escreveu: Markos writes: Hi, I have a table.csv file with the following structure: , Polyarene conc ,, mg L-1 ,,, Spectrum, Py, Ace, Anth, 1, "0,456", "0,120", "0,168" 2, "0,456", "0,040", "0

Most efficient way to replace "," with "." in a array and/or dataframe

2019-09-21 Thread Markos
rray with a loop "for". Also I'm also wondering if there would be any benefit of making this modification in dataframe before extracting the numeric fields to the array. Please, any comments or tip? Thanks you, Markos -- https://mail.python.org/mailman/listinfo/python-list

Re: Matplotlib import image as float32

2019-07-02 Thread Markos
Em 01-07-2019 18:03, Chris Angelico escreveu: On Tue, Jul 2, 2019 at 6:59 AM Markos wrote: Hi, I observed that matplotlib reads an image file (PNG) as float32: Please, how to read this file as int8 to get RGB in range of 0-255? Thank you, Markos import numpy as np import

Matplotlib import image as float32

2019-07-01 Thread Markos
Hi, I observed that matplotlib reads an image file (PNG) as float32: Please, how to read this file as int8 to get RGB in range of 0-255? Thank you, Markos import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg imagem = mpimg.imread('lenna.png') print

Re: Difference between array( [1,0,1] ) and array( [ [1,0,1] ] )

2019-06-22 Thread Markos
[ [2, 6],    [4, 8] ] ] ) Thank you, Markos Em 21-06-2019 07:44, edmondo.giovanno...@gmail.com escreveu: Every array in numpy has a number of dimensions, "np.array" is a function that can create an array numpy given a list. when you write vector_1 = np.array([1,2,

Difference between array( [1,0,1] ) and array( [ [1,0,1] ] )

2019-06-21 Thread Markos
) The transpose on vector_1 don't work: vector_1.T array([1, 0, 1]) But the transpose method in vector_2 works fine: vector_2.T array([[1],    [0],    [1]]) I thought that both vectors would be treated as an matrix of 1 row and 3 columns. Why this difference? Any tip? Thank you, Markos

Re: How to install matplotlib in Debian 9

2018-06-11 Thread Markos
Em 08-06-2018 20:11, Jim Lee escreveu: On 06/08/2018 11:54 AM, Markos wrote: Hi, I'm starting my studies with Python 3 on Debian 9 that I just installed. I have to install the matplotlib module, but I am in doubt what is the difference of the commands: pip3 install matplotlib or apt

How to install matplotlib in Debian 9

2018-06-08 Thread Markos
are installed? Thanks, Markos -- https://mail.python.org/mailman/listinfo/python-list

Re: OpenCV with Python (cv or cv2)

2015-05-29 Thread Markos
in the repository for python 3.4.2-2 and 2.7.9-1 My doubt is which version of Python (3.4.2-2 or 2.7.9-1) is compatible with the opencv library 2.4.9 available in the repository? Thanks for your attention, Markos On 28-05-2015 01:47, Laura Creighton wrote: Your cmake output doesn't mention

Re: OpenCV with Python (cv or cv2)

2015-05-27 Thread Markos
Hi Laura, On 26-05-2015 11:21, Laura Creighton wrote: In a message of Tue, 26 May 2015 10:24:30 -0300, Markos writes: Hi, I want to use OpenCV with Python. I installed version 2.4.9 (http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip/) in debian

OpenCV with Python (cv or cv2)

2015-05-26 Thread Markos
use the cv module. (import cv) But still I do not understand the differences between the modules cv and cv2. Do you suggest any good tutorial about the differences between cv and cv2? I will have to make many changes in python programs using cv to reuse the code later with cv2? Thanks, Markos

Idle - ImportError: No module named numpy

2015-03-09 Thread Markos
pyshell#0, line 1, inmodule import numpy as np ImportError: No module named numpy How configure idle to load the numpy module? Thanks, Markos -- https://mail.python.org/mailman/listinfo/python-list

How to install i1636

2015-03-09 Thread Markos
Please, How to install the ia636 library on Debian (Squeeze) with Python 2.6? Thank you, Markos -- https://mail.python.org/mailman/listinfo/python-list