numpy 1.22.4 Pypi GitHub Homepage
Other Docs
ParametersReturnsBackRef
expandtabs(a, tabsize=8)

Calls :None:None:`str.expandtabs` element-wise.

Return a copy of each string element where all tab characters are replaced by one or more spaces, depending on the current column and the given :None:None:`tabsize`. The column number is reset to zero after each newline occurring in the string. This doesn't understand other non-printing characters or escape sequences.

Parameters

a : array_like of str or unicode

Input array

tabsize : int, optional

Replace tabs with :None:None:`tabsize` number of spaces. If not given defaults to 8 spaces.

Returns

out : ndarray

Output array of str or unicode, depending on input type

Return a copy of each string element where all tab characters are replaced by one or more spaces.

See Also

str.expandtabs

Examples

See :

Back References

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

numpy.core.defchararray.chararray.expandtabs

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/core/defchararray.py#647
type: <class 'function'>
Commit: