I register input function arguments using
logging.debug('Input to this function = %s', inspect.getargvalues(inspect.currentframe())[3])
But I do not want line breaks to be inserted into numpy objects. numpy.set_printoptions(linewidth=np.nan) removes some, but line breaks are still inserted into 2D objects such as
array([[ 0.84148239, 0.71467895, 0.00946744, 0.3471317 ], [ 0.68041249, 0.20310698, 0.89486761, 0.97799646], [ 0.22328803, 0.32401271, 0.96479887, 0.43404245]])
I want it to be like this:
array([[ 0.84148239, 0.71467895, 0.00946744, 0.3471317 ], [ 0.68041249, 0.20310698, 0.89486761, 0.97799646], [ 0.22328803, 0.32401271, 0.96479887, 0.43404245]])
How can i do this? Thanks.
spark source share