You are viewing an older version (2.4.3). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.4.3 / numpy / lib / _iotools / StringConverter / update

function

numpy.lib._iotools:StringConverter.update

source: /numpy/lib/_iotools.py :766

Signature

def   update ( self func default = None testing_value = None missing_values = '' locked = False )

Summary

Set StringConverter attributes directly.

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 missing_values are cleared. The default is ''.

locked : bool, optional

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

Notes

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

Aliases

  • numpy.lib._iotools.StringConverter.update