bundles / numpy 2.4.4 / numpy / lib / _iotools / NameValidator / validate
function
numpy.lib._iotools:NameValidator.validate
source: /numpy/lib/_iotools.py :312
Signature
def validate ( self , names , defaultfmt = f%i , nbfields = None ) Summary
Validate a list of strings as field names for a structured array.
Parameters
names: sequence of strStrings to be validated.
defaultfmt: str, optionalDefault format string, used if validating a given string reduces its length to zero.
nbfields: integer, optionalFinal number of validated names, used to expand or shrink the initial list of names.
Returns
validatednames: list of strThe list of validated field names.
Notes
A NameValidator instance can be called directly, which is the same as calling validate. For examples, see NameValidator.
Aliases
-
numpy.lib._iotools.NameValidator.validate