1# Error:
2RuntimeWarning: overflow encountered in long_scalars
3
4# Solution:
5# This error usually comes up because the data type you're using can't
6# handle the size of number you're trying to manipulate. For example,
7# the largest number you can manipulate with int32 is 2147483647.
8# Depending on the size of numbers you're dealing with, setting the data
9# type to int64 or float64 might solve the problem. E.g.:
10numpy_array = np.array(my_list, dtype=numpy.float64)