I'm looking for a quick way to remove duplicate values present in a 2D array on a first come first serve basis. I know a way to remove the rows if they are identical, but not if only one of the values ...

The following code works well. Just checking: am I using and timing Pandas correctly and is there any faster way? Thanks.
$ python3
Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
...

Here's my problem:
This is for an introductory Python course, however I just cannot wrap my head around how to do this without using loops. I have a list of lists, with each list containing 12 float ...

I have an array of values and have created a histogram of the data using numpy.histogram, as follows:
histo = numpy.histogram(arr, nbins)
where nbins is the number of bins derived from the range of ...

I am working at sattelite monitoring database which will be often updated.
I have a territory with big amount of pixels which could be imaged as 2D array and the amount of pixels is constant .
Every ...

I am new to Python so this question might look trivia. However, I did not find a similar case to mine. I have a matrix of coordinates for 20 nodes. I want to compute the euclidean distance between all ...

I want to access the elements of a list given a condition on another list. Normally, I would do this by using NumPy, but the requirements I have to follow state that I have to stick to Python Standard ...

Hi I was wondering how to superimpose two images (source and target) of different resolution and dimensions for display. Actually, I wanted to rotate and translate those images in order to align them ...

I am trying to find out a way to do a matrix power for a sparse matrix M: M^k = M*...*M k times where * is the matrix multiplication (numpy.dot), and not element-wise multiplication.
I know how to do ...

I am using scipy.sparse in my application and want to do some performance tests. In order to do that, I need to create a large sparse matrix (which I will then use in my application). As long as the ...

I have a set of values that are basically answers to questions but when I count up the answers I want to pretend that I have a better distribution of responses by giving the answers weights. Here is ...

Hey I'm new to python and I have to do a project that requires openCV and Numpy. I'm currently using both Pycharm and Spyder as my IDE's and Windows as an operating system. While found a executable ...

So I need to use the truncnorm function in Python to evaluate likelihoods of values from a truncated normal distribution that has a lower bound of zero.
Since truncnorm works on the standard normal ...

I have a dataframe. For each row of the dataframe: I need to read values from two column indexes, pass these values to a set of equations, enter the result of each equation into its own column index ...

I already read this question:
memory error in numpy svd and this Applying SVD throws a Memory Error instantaneously? and a bunch of other numpy.linalg.svd questions.
I need to run svd on very large ...

I have a set of values that are basically answers to questions but when I count up the answers I want to pretend that I have a better distribution of responses by giving the answers weights. Here is ...

I have a timeseries of hourly data that has values on Monday (all day), Tuesday (all day), Wednesday (all day), Thursday (all day), and Friday (up until 13:00).
Then there are values on Sunday from ...