News

NumPy 1.15.0 release is out!

2 min read

NumPy 1.15.0 is out and is said to include a lot of changes including several cleanups, deprecations of old functions. It also includes improvements to many existing functions. The Python versions supported by NumPy 1.15.0 are 2.7, 3.4 to 3.7.

Some of the highlights in this release include

  • NumPy has switched to pytest for testing as this version no longer contains the maintained nose framework. However, the old nose based interface is still available for downstream projects.
  • A new numpy.printoptions context manager can now set print options temporarily for the scope of the with block::
with np.printoptions(precision=2):
... print(np.array([2.0]) / 3)
[0.67]
  • Improvements to the histogram functions. This version includes numpy.histogram_bin_edges, a function to get the edges of the bins used by a histogram without needing to calculate the histogram.
  • Support for unicode field names in python 2.7.
  • Improved support for PyPy.
  • Fixes and improvements to numpy.einsum, which evaluates Einstein summation convention on the operands.

New features in the NumPy 1.15.0

Added np.gcd and np.lcm ufuncs for integer and objects types

Both np.gcd and np.lcm used for computing the greatest common divisor, and the lowest common multiple respectively. These work on all the numpy integer types, as well as the

built in arbitrary-precision Decimal and long types.

Support for cross-platform builds for iOS

The build system in this version has been modified to add support for the _PYTHON_HOST_PLATFORM environment variable, used by distutils when

compiling on one platform for another platform. This makes it possible to compile NumPy for iOS targets.

Addition of return_indices keyword for np.intersect1d

New keyword return_indices returns the indices of the two input arrays that correspond to the common elements.

Build system

This version has an added experimental support for the 64-bit RISC-V architecture.

Future Changes expected in the further versions

Both NumPy 1.16 and NumPy 1.17 will be dropping support for Python 3.4 and Python 2.7 respectively.

Read more about this release in detail on its GitHub Page

Read Next

 

Savia Lobo

A Data science fanatic. Loves to be updated with the tech happenings around the globe. Loves singing and composing songs. Believes in putting the art in smart.

Share
Published by
Savia Lobo

Recent Posts

Top life hacks for prepping for your IT certification exam

I remember deciding to pursue my first IT certification, the CompTIA A+. I had signed…

3 years ago

Learn Transformers for Natural Language Processing with Denis Rothman

Key takeaways The transformer architecture has proved to be revolutionary in outperforming the classical RNN…

3 years ago

Learning Essential Linux Commands for Navigating the Shell Effectively

Once we learn how to deploy an Ubuntu server, how to manage users, and how…

3 years ago

Clean Coding in Python with Mariano Anaya

Key-takeaways:   Clean code isn’t just a nice thing to have or a luxury in software projects; it's a necessity. If we…

3 years ago

Exploring Forms in Angular – types, benefits and differences   

While developing a web application, or setting dynamic pages and meta tags we need to deal with…

3 years ago

Gain Practical Expertise with the Latest Edition of Software Architecture with C# 9 and .NET 5

Software architecture is one of the most discussed topics in the software industry today, and…

3 years ago