>
> 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
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
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
___
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
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