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()



Share this Tutorial / Exercise on : Facebook and Twitter