nbstata icon indicating copy to clipboard operation
nbstata copied to clipboard

Some Magics do not function with Numpy 2.0

Open ibertchen opened this issue 1 year ago • 1 comments

After upgrading Numpy to version 2.0, some Magics commands do not work correctly due to the way Numpy handles NaN.

For example:

sysuse auto, clear
%head 10

leads to

browse failed. np.NaN was removed in the NumPy 2.0 release. Use np.nan instead.

The current workaround is to downgrade Numpy to version 1.26.4 or earlier.

ibertchen avatar Jul 19 '24 18:07 ibertchen

Thank you for reporting! I'll try to get a fix by the end of this month.

hugetim avatar Sep 18 '24 20:09 hugetim

Fixed in v0.8.1

hugetim avatar Oct 26 '24 02:10 hugetim