[Numpy-discussion] Re: Suggestion to show the shape in repr for summarized arrays

2024-10-01 Thread Evgeni Burovski via NumPy-Discussion
> > Given that we've already chosen to use the fake `shape=...` keyword when > there is a 0-length axis, what do you think we should do, consistency-wise? > > >>> np.empty([10, 0]) > array([], shape=(10, 0), dtype=float64) > > 1. Follow the precedent and use the fake `shape=...` keyword in the > su

[Numpy-discussion] Re: Suggestion to show the shape in repr for summarized arrays

2024-10-01 Thread Evgeni Burovski via NumPy-Discussion
I like this, too. And I think the trailing comment, # shape=... is much better, as it gets the best of both worlds: user get the info, and tools which do eval(repr(..)) only need to learn to ignore the comment. For one, numpy's own doctests will keep working with no churn since scipy_doctest handl

[Numpy-discussion] I am getting an error in anaconda jupyter notebook, I am unable to solve. please help me.

2024-10-01 Thread Usha Gayatri via NumPy-Discussion
This is the error i am getting when trying to execute import numpy as np File E:\anaconda3\Lib\site-packages\pandas\_libs\interval.pyx:1, in init pandas._libs.interval() ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject ___

[Numpy-discussion] Re: Suggestion to show the shape in repr for summarized arrays

2024-10-01 Thread Robert Kern via NumPy-Discussion
On Tue, Oct 1, 2024 at 9:57 AM Evgeni Burovski via NumPy-Discussion < numpy-discussion@python.org> wrote: > I like this, too. > > And I think the trailing comment, # shape=... is much better, as it gets > the best of both worlds: user get the info, and tools which do > eval(repr(..)) only need to

[Numpy-discussion] Re: I am getting an error in anaconda jupyter notebook, I am unable to solve. please help me.

2024-10-01 Thread matti picus via NumPy-Discussion
Your version of pandas is not compatible with your version of numpy. Try reinstalling both of them. Matti On Tue, Oct 1, 2024 at 4:27 PM Usha Gayatri via NumPy-Discussion wrote: > > This is the error i am getting when trying to execute import numpy as np > File E:\anaconda3\Lib\site-packages\pand