pandas 1.4.2

ReturnsBackRef
title(self)

Equivalent to str.title .

Returns

Series or Index of object

Convert strings in the Series/Index to titlecase.

See Also

Series.str.capitalize

Converts first character to uppercase and remaining to lowercase.

Series.str.casefold

Removes all case distinctions in the string.

Series.str.lower

Converts all characters to lowercase.

Series.str.swapcase

Converts uppercase to lowercase and lowercase to uppercase.

Series.str.title

Converts first character of each word to uppercase and remaining to lowercase.

Series.str.upper

Converts all characters to uppercase.

Examples

This example is valid syntax, but we were not able to check execution
>>> s = pd.Series(['lower', 'CAPITALS', 'this is a sentence', 'SwApCaSe'])
... s 0 lower 1 CAPITALS 2 this is a sentence 3 SwApCaSe dtype: object
This example is valid syntax, but we were not able to check execution
>>> s.str.lower()
0                 lower
1              capitals
2    this is a sentence
3              swapcase
dtype: object
This example is valid syntax, but we were not able to check execution
>>> s.str.upper()
0                 LOWER
1              CAPITALS
2    THIS IS A SENTENCE
3              SWAPCASE
dtype: object
This example is valid syntax, but we were not able to check execution
>>> s.str.title()
0                 Lower
1              Capitals
2    This Is A Sentence
3              Swapcase
dtype: object
This example is valid syntax, but we were not able to check execution
>>> s.str.capitalize()
0                 Lower
1              Capitals
2    This is a sentence
3              Swapcase
dtype: object
This example is valid syntax, but we were not able to check execution
>>> s.str.swapcase()
0                 LOWER
1              capitals
2    THIS IS A SENTENCE
3              sWaPcAsE
dtype: object
See :

Back References

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

pandas.plotting

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


File: /pandas/core/strings/accessor.py#2945
type: <class 'function'>
Commit: