package scipy

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type tag = [
  1. | `OrderedDict
]
type t = [ `Object | `OrderedDict ] Obj.t
val of_pyobject : Py.Object.t -> t
val to_pyobject : [> tag ] Obj.t -> Py.Object.t
val __getitem__ : y:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

x.__getitem__(y) <==> xy

val __iter__ : [> tag ] Obj.t -> Py.Object.t

Implement iter(self).

val __setitem__ : key:Py.Object.t -> value:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

Set selfkey to value.

val fromkeys : ?value:Py.Object.t -> iterable:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

Create a new ordered dictionary with keys from iterable and values set to value.

val get : ?default:Py.Object.t -> key:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

Return the value for key if key is in the dictionary, else default.

val move_to_end : ?last:Py.Object.t -> key:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

Move an existing element to the end (or beginning if last is false).

Raise KeyError if the element does not exist.

val pop : ?d:Py.Object.t -> k:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

od.pop(k,d) -> v, remove specified key and return the corresponding value. If key is not found, d is returned if given, otherwise KeyError is raised.

val popitem : ?last:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

Remove and return a (key, value) pair from the dictionary.

Pairs are returned in LIFO order if last is true or FIFO order if false.

val setdefault : ?default:Py.Object.t -> key:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

Insert key with a value of default if key is not in the dictionary.

Return the value for key if key is in the dictionary, else default.

val update : ?e:Py.Object.t -> ?f:(string * Py.Object.t) list -> [> tag ] Obj.t -> Py.Object.t

D.update(E, **F) -> None. Update D from dict/iterable E and F. If E is present and has a .keys() method, then does: for k in E: Dk = Ek If E is present and lacks a .keys() method, then does: for k, v in E: Dk = v In either case, this is followed by: for k in F: Dk = Fk

val to_string : t -> string

Print the object to a human-readable representation.

val show : t -> string

Print the object to a human-readable representation.

val pp : Format.formatter -> t -> unit

Pretty-print the object to a formatter.

OCaml

Innovation. Community. Security.