numpy 1.22.4 Pypi GitHub Homepage
Other Docs
NotesParametersBackRef
update(self, func, default=None, testing_value=None, missing_values='', locked=False)

Notes

update takes the same parameters as the constructor of StringConverter , except that :None:None:`func` does not accept a dtype whereas :None:None:`dtype_or_func` in the constructor does.

Parameters

func : function

Conversion function.

default : any, optional

Value to return by default, that is, when the string to be converted is flagged as missing. If not given, StringConverter tries to supply a reasonable default value.

testing_value : str, optional

A string representing a standard input value of the converter. This string is used to help defining a reasonable default value.

missing_values : {sequence of str, None}, optional

Sequence of strings indicating a missing value. If None , then the existing :None:None:`missing_values` are cleared. The default is :None:None:`''`.

locked : bool, optional

Whether the StringConverter should be locked to prevent automatic upgrade or not. Default is False.

Set StringConverter attributes directly.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

numpy.lib._iotools.StringConverter.update

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /numpy/lib/_iotools.py#764
type: <class 'function'>
Commit: