Python | numpy.printoptions() method
With the help of
numpy.printoptions() method, we can get the custom printing options like we can set the precisions of floating value by using
Return : Return the customized printing like precision.
Example #1 :
In this example we can see that by using
numpy.printoptions() method, we are able to get the customized printing options like we can set the precision values.
[0.42 0.84 1.261]
Example #2 :
[[ 2.09512 4.19024 6.28536]
[ 8.38047 10.47559 12.57071]
[14.66583 16.76095 18.85607]]
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course