w3resource

NumPy Input and Output: get_printoptions() function

numpy.get_printoptions() function

The get_printoptions() function is used to get the current print options

Syntax:

numpy.get_printoptions()

Version: 1.15.0

Returns: print_opts : dict

Dictionary of current print options with keys

  • precision : int
  • threshold : int
  • edgeitems : int
  • linewidth : int
  • suppress : bool
  • nanstr : str
  • infstr : str
  • formatter : dict of callables
  • sign : str

For a full description of these options, see set_printoptions.

Python - NumPy Code Editor:

Previous: set_printoptions() function
Next: set_string_function()



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://www.w3resource.com/numpy/input-and-output/get_printoptions.php