Return the first element of the underlying data as a Python scalar.
The first element of Series or Index.
If the data is not length = 1.
Examples
>>> s = pd.Series([1]) >>> s.item() 1
For an index:
>>> s = pd.Series([1], index=['a']) >>> s.index.item() 'a'
On this page
Show SourceRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4