Uncategorized
How to Establish a European Company in 5 Minutes: Start invoicing clients in 186 countries
Are you ready to take your entrepreneurial dreams to the next level? Imagine having your own European company up and running in just 5 minutes, opening doors to limitless opportunities on a global scale. Well, your vision can become a reality with Xolo. In this article, I’m thrilled to share my personal journey and how … Read more
AttributeError: ‘float’ object has no attribute ’round’
Just change this: a = 3.56803 print(a.round(2)) to this: a = 3.56803 print(round(a, 2))
Numba njit “ZeroDivisionError: division by zero”
In a normal njit function setting error_model=”numpy” does exactly this. There are also significant speedups possible by setting this option. So: @njit(error_model=”numpy”) If you are wandering what Numba is, read more about Numba here. It’s a really cool thing, I highly recommend getting familiar with it.
Easy way to reshape 1D numpy arrays into 2D
X = X.reshape(X.shape[0],-1)