[Numpy-discussion] ANN: pandas v0.19.2 released!

2016-12-24 Thread Joris Van den Bossche
atsnew page <http://pandas.pydata.org/pandas-docs/version/0.19.2/whatsnew.html> for an overview of all bugs that have been fixed in 0.19.2. Thanks to all contributors! Joris --- *How to get it:* Source tarballs and windows/mac/linux wheels are available on PyPI (thanks to Christoph Go

[Numpy-discussion] ANN: pandas v0.19.1 released!

2016-11-04 Thread Joris Van den Bossche
data.org/pandas-docs/version/0.19.1/whatsnew.html> for an overview of all bugs that have been fixed in 0.19.1. Thanks to all contributors! Joris --- *How to get it:* Source tarballs and windows/mac/linux wheels are available on PyPI (thanks to Christoph Gohlke for the windows wheels, and to Matthe

[Numpy-discussion] ANN: pandas v0.19.0 released

2016-10-03 Thread Joris Van den Bossche
das-docs/version/0.19.0/whatsnew.html> file for more information. We recommend that all users upgrade to this version. This is the work of 5 months of development by 117 contributors. A big thank you to all contributors! Joris --- *What is it:* pandas is a Python package providing fast, fl

[Numpy-discussion] ANN: pandas v0.19.0rc1 - RELEASE CANDIDATE

2016-09-08 Thread Joris Van den Bossche
-travis/whatsnew.html> file for more information. Please report any issues here <https://github.com/pydata/pandas/issues/>. A big thanks to all contributors! Joris ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Docs website down?

2014-08-20 Thread Joris Van den Bossche
It seems the docs website of numpy and scipy (http://docs.scipy.org/doc/) is down. Is anyone looking at this? There is even already a stackoverflow question about it .. Best regards, Joris ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] Overlapping time series

2014-02-11 Thread Joris Van den Bossche
ns about how to use pandas, please look at the pydata mailing > >> list or stackoverflow. > > > > Correct me if I'm wrong, but this assumes that missing data points are > > represented with Nan. In my case missing data points are jus

Re: [Numpy-discussion] datetime64 1970 issue

2013-04-17 Thread Joris Van den Bossche
2013/4/18 Chris Barker - NOAA Federal > On Wed, Apr 17, 2013 at 1:09 PM, Bob Nnamtrop > wrote: > > It would seem that before 1970 the dates do not include the time zone > > adjustment while after 1970 they do. This is the source of the extra 7 > > hours. > > > > In [21]: np.datetime64('1970-01-0

Re: [Numpy-discussion] lfilter

2008-12-20 Thread Joris De Ridder
package to be used for mathematics, science, and engineering. Cheers, Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] np.loadtxt : yet a new implementation...

2008-12-02 Thread Joris De Ridder
y. As a consequence, numpy.loadtxt() was created which was simple and fast. Now it looks like we're going back to something grandiose. But perhaps it can be made grandiose *and* reasonably fast ;-). Cheers, Joris P.S. As a reference: http://article.gmane.org/gmane.comp.python.num

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-25 Thread Joris De Ridder
precation warning postpones but doesn't avoid breaking the API. Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] statistical model fitting & comparison

2008-10-22 Thread Joris De Ridder
Thanks for the pointers. I'll produce some code to show what I have in mind, and then come back to the list. Cheers, Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mailing list Numpy-discussion@scip

[Numpy-discussion] statistical model fitting & comparison

2008-10-20 Thread Joris De Ridder
is, I would like to find out if anyone actually already wrote something along these lines, in order not to reinvent the wheel. Cheers, Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mailing list Numpy-discu

Re: [Numpy-discussion] The "NumPy" Cython release + tutorial

2008-08-21 Thread Joris De Ridder
st section of that tutorial (Efficient indexing) should > be useful for those who know Cython as well. This looks really great! Thanks! Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mailing list Numpy-disc

Re: [Numpy-discussion] On my Cython/NumPy project

2008-06-21 Thread Joris De Ridder
egative indices are not supported" you mean that they are passed to python, or won't they work at all? I'm looking forward to the results of your Cython project! Cheers, Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Joris De Ridder
turn x ...: In [3]: fn() Out[3]: array([[ 0.07840917, 0.73252624], [ 0.8109354 , 0.38653933], [ 1.62187081, 0.1785713 ], [ 2.00841014, 0.76834603], [ 3.63028095, 0.64377051]]) Max OSX, Python 2.5, numpy 1.0.4. Joris Disc

Re: [Numpy-discussion] Going toward time-based release ?

2008-05-12 Thread Joris De Ridder
ase the tendency to include untested things? Just the 2 cents of a user, Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Using normal()

2008-04-24 Thread Joris De Ridder
On 24 Apr 2008, at 19:26, Rich Shepard wrote: >> norm = 1 / (scale * sqrt(2 * pi)) >> y = norm * exp(-power((x - loc), 2) / (2 * scale**2)) > > Can do. So, scale would equate to width and loc to center, yes? Scale is half the width between the inflection points, mind the factor of 2. J. D

Re: [Numpy-discussion] access ndarray in C++

2008-04-23 Thread Joris De Ridder
On 23 Apr 2008, at 17:50, Tommy Grav wrote: > > On Apr 23, 2008, at 11:26 AM, Joris De Ridder wrote: > >> >> They are attached to the wiki page. Click on "Attachments" in the >> menu >> on the left. >> >> Joris > > Thanks. Didn'

Re: [Numpy-discussion] access ndarray in C++

2008-04-23 Thread Joris De Ridder
They are attached to the wiki page. Click on "Attachments" in the menu on the left. Joris On 23 Apr 2008, at 17:19, Tommy Grav wrote: > > On Apr 22, 2008, at 9:56 PM, Joris De Ridder wrote: > >> >> On http://www.scipy.org/JorisDeRidder I've

Re: [Numpy-discussion] access ndarray in C++

2008-04-23 Thread Joris De Ridder
ou to make shared libraries of your C++ code without having to worry about whether it should be a .dll, a .so, or a .dylab library. Plus, it's very easy to install. Cheers, Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm __

Re: [Numpy-discussion] access ndarray in C++

2008-04-22 Thread Joris De Ridder
't experience any bugs though. Joris On 22 Apr 2008, at 23:38, Thomas Hrabe wrote: Hi all! I am currently developing a python module in C/C++ which is supposed to access nd arrays as defined by the following command in python a = numpy.array([1,1,1]) I want to access the array t

Re: [Numpy-discussion] Release of NumPy

2008-04-17 Thread Joris De Ridder
ot; I expect tons of emails of (newbie) people confused whether and when they should use array and when Vector. Especially when they come from a language where "vector" is used for what we call an array. Just my 2 cents, Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer

Re: [Numpy-discussion] #734: interactive docstring search (lookfor)

2008-04-10 Thread Joris De Ridder
e suitable for IPython. Of course, no problem if IPython is willing to special-case NumPy/SciPy. Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects

Re: [Numpy-discussion] packaging scipy (was Re: Simple financial functions for NumPy)

2008-04-10 Thread Joris De Ridder
t depreciation, annuity periodic payments, security yields, and stuff like this? Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Simple financial functions for NumPy

2008-04-04 Thread Joris De Ridder
iPy philosophy either. :-). So, I would prefer to see this nice functionality in SciPy rather than in NumPy. Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://

Re: [Numpy-discussion] Quikest way to create a diagonal matrix ?

2008-03-26 Thread Joris De Ridder
ndre seems to be about 4 times as fast, though. But I love the way you obfuscate things by having "T" for both the tri- matrix as the transpose method. :-) It get's even better with numpy matrices. Next year, my students will see something like I.H-T.H*T.I+I.I*H.I+T.T*H.H-H.I R

Re: [Numpy-discussion] numpy.any segfaults for large object arrays

2008-03-24 Thread Joris De Ridder
On 24 Mar 2008, at 18:27, Martin Manns wrote: >> I cannot confirm the problem on my intel macbook pro using the same >> Python and Numpy versions. Although any(numpy.array(large_none)) >> takes >> a significantly longer time than any(numpy.array(large_zero)), the >> former does not segfault on

Re: [Numpy-discussion] numpy.any segfaults for large object arrays

2008-03-24 Thread Joris De Ridder
I cannot confirm the problem on my intel macbook pro using the same Python and Numpy versions. Although any(numpy.array(large_none)) takes a significantly longer time than any(numpy.array(large_zero)), the former does not segfault on my machine. J. On 24 Mar 2008, at 14:05, Martin Manns

Re: [Numpy-discussion] dunno what array operation I'm looking for...

2008-03-22 Thread Joris De Ridder
On 22 Mar 2008, at 13:49, Chris Withers wrote: > Joris De Ridder wrote: >> numpy.diff >> See http://www.scipy.org/Numpy_Example_List > > Cool :-) > > Both this and Hoyt's example do exactly what I want. > > I'm guessing diff is going to be more effic

Re: [Numpy-discussion] Improving Docs on Wiki

2008-03-21 Thread Joris De Ridder
"magic" search terms like e.g. category names. Cheers, Joris --- import numpy from inspect import getdoc import re def doc(searchstr): searchstr = searchstr.strip().replace('*','\w*').replace('?','\w') pattern =

Re: [Numpy-discussion] dunno what array operation I'm looking for...

2008-03-21 Thread Joris De Ridder
numpy.diff See http://www.scipy.org/Numpy_Example_List J. On 22 Mar 2008, at 03:43, Chris Withers wrote: > Hi All, > > Say I have an array like: > measurements = array([100,109,115,117]) > > What do I do to it to get: > > array([9, 6, 2]) > > Is the following really the best way? >

Re: [Numpy-discussion] Help needed with numpy 10.5 release blockers

2008-03-21 Thread Joris De Ridder
On 21 Mar 2008, at 12:29, Sebastian Haase wrote: > ... and what does the "p" stand for in N.intp > It stands for "pointer". An intp is an integer large enough to contain a pointer address. J. Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___

Re: [Numpy-discussion] C++ class encapsulating ctypes-numpy array?

2008-03-20 Thread Joris De Ridder
oat/... Yep, I did this on the Python side. Thanks for the remark, though. Cheers, Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] C++ class encapsulating ctypes-numpy array?

2008-03-20 Thread Joris De Ridder
better than what I cooked. If it turns out that it may interest more people, I'll put it on the scipy wiki.Cheers,Joris ndarray.h Description: Binary data On 19 Mar 2008, at 16:22, Matthieu Brucher wrote:Hi,On my blog, I spoke about the class we used. It is not derived from a Numpy array,

[Numpy-discussion] C++ class encapsulating ctypes-numpy array?

2008-03-19 Thread Joris De Ridder
(e.g. x[0][2][5] for a 3D array) so that you don't have to worry about strides? I guess I'm not the first one thinking about this... Cheers, Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mail

Re: [Numpy-discussion] subset of array - statistics

2008-03-13 Thread Joris De Ridder
I am new to the world of Python and numpy Welcome. I have successfully imported the data into lists and then created a single array from the lists. I think putting each quantity in a 1D array is more practical in this case. I can get the rainfall total over the entire period using:

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-10 Thread Joris De Ridder
cating, Nope, you did a great job! Cheers, Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-07 Thread Joris De Ridder
r email, I understand it's possibly to mediate this for Cython. From a technical point of view, would it also be possible to make ctypes work better with Numpy, and if yes, do you have any idea whether it would be more or less work than for Cython? Cheers, Joris P.S. I had some p

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-06 Thread Joris De Ridder
nor python nor C, but a third language. Is this indeed easier to maintain? When you would like to use legacy C code for an extension, would you rewrite it in Cython? What are Cython's advantages compared to ctypes? Cheers, Joris Disclaimer: http://www.kuleuven.

Re: [Numpy-discussion] Median advice

2008-02-12 Thread Joris De Ridder
median(). I realise it's kind of a niche example, though. Just my 0.02 euros. Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/lis

Re: [Numpy-discussion] Median again

2008-01-29 Thread Joris De Ridder
We can add the axis keyword for 1.0.5 as long as the default stays the > same. We can also add the other keywords as well if appropriate > defaults can be determined. Do you mean creating a median(a, axis=0) for 1.0.5, and changing it to median(a,axis=None) for 1.1? (Modulo other keywords).

Re: [Numpy-discussion] Median again

2008-01-29 Thread Joris De Ridder
tandard function to use. I would actually prefer a short pain rather than a long one. Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] arange and floating point arguments

2007-09-15 Thread Joris De Ridder
ge(), its default endpoint=True option seems a little bit inconvenient (but by no means a problem), as you would always have to reset it to emulate arange() behaviour. Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-d

Re: [Numpy-discussion] arange and floating point arguments

2007-09-14 Thread Joris De Ridder
ses linspace() could well replace arange(). In many cases, yes, but not all. For some cases arange() has its legitimate use, even for floating point, and in these cases you may get bitten by the inexact number representation. If Matlab seems to be able to avoid surprises, why not numpy? Jo

Re: [Numpy-discussion] arange and floating point arguments

2007-09-14 Thread Joris De Ridder
er, avoid some surprises from time to time. From the example of Lorenzo, it seems that Matlab is always including the endpoint. How exactly is their arange version defined? Joris ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projec

Re: [Numpy-discussion] arange and floating point arguments

2007-09-14 Thread Joris De Ridder
Might using min(ceil((stop-start)/step), ceil((stop-start)/step-r)) with r = finfo(double).resolution instead of ceil((stop-start)/step) perhaps be useful? Joris On 14 Sep 2007, at 11:37, Ed Schofield wrote: > Hi everyone, > > This was reported yesterday as a bug in Debia

Re: [Numpy-discussion] Anyone have a well-tested SWIG-based C++ STL valarray <=> numpy.array typemap to share?

2007-09-05 Thread Joris De Ridder
A related question, just out of curiosity: is there a technical reason why Numpy has been coded in C rather than C++? Joris On 05 Sep 2007, at 02:24, David Goldsmith wrote: > Anyone have a well-tested SWIG-based C++ STL valarray <=> numpy.array > typemap to share? Th

Re: [Numpy-discussion] Trac ticket

2007-08-29 Thread Joris De Ridder
> You should most likely just attach a patch against the latest trunk > to the ticket itself for review. Done. The patch adds an 'axis' keyword to median(). J. Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mailing

[Numpy-discussion] Trac ticket

2007-08-29 Thread Joris De Ridder
committing a fix back to the SVN repository seems to require a specific login/pw, how to get one (assuming my fix is welcome)? Cheers, Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mailing list Numpy-

Re: [Numpy-discussion] the neighbourhood of each element of an array

2007-02-25 Thread joris
. But combining it with the suggestion of Bryan does not seem possible in this particular case as the swapaxis operations would no longer be possible as the resulting array would be one with shape (s*s,) containing objects with shape (Nrow-2*d,Ncol-2*d). Cheers, Joris Quoting Francesc Altet &l

[Numpy-discussion] the neighbourhood of each element of an array

2007-02-23 Thread joris
2000x2000 array. Does anyone know a better approach? Ciao, Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] problem installing numpy on OSX

2007-02-16 Thread joris
talls well on my Linux box, but there I use gcc-3.4. instead of gcc-4.0. Might this be a compiler issue? What version of numpy did you install, did you notice any warning or error messages at all? Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaime

[Numpy-discussion] problem installing numpy on OS X

2007-02-16 Thread joris
n import ctypeslib File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ctypeslib.py", line 5, in from numpy import integer, ndarray, dtype as _dtype, deprecate ImportError: cannot import name integer The errors I was talking about seem

Re: [Numpy-discussion] confused with apply_along_axis()

2007-02-07 Thread Joris De Ridder
On Wednesday 07 February 2007 15:22, Stefan van der Walt wrote: >On Wed, Feb 07, 2007 at 03:11:53PM +0100, Joris De Ridder wrote: >> I expected as output >> array([[ 1., 4.], >>[ 7., 10.]]) > >That is the answer I get with numpy 1.0.2.dev3537 under Pyth

[Numpy-discussion] confused with apply_along_axis()

2007-02-07 Thread Joris De Ridder
Hi, I'm confused by the output of apply_along_axis() in the following very simple example: In [93]: a = arange(12.).reshape(2,2,3) In [95]: a Out[95]: array([[[ 0., 1., 2.], [ 3., 4., 5.]], [[ 6., 7., 8.], [ 9., 10., 11.]]]) In [96]: def myfunc(b): ...