Python Pandas Types

The types defined by the pandas module.


DataFrame

For details on pandas.core.frame.DataFrame, see here.


RangeIndex

The pandas.core.indexes.range.RangeIndex type is returned by the index attribute on other data types, such as Series.


Series

For details on pandas.core.series.Series, see here.


_ILocIndexer

pandas.core.indexing._iLocIndexer is a view object returned by the iloc method. Even if there is a set index for the original object, this always looks up sequential integer indices.

s.iloc[0]   # first value by integer index
s.iloc[-1]  # last value
s.iloc[:5]  # slice of first 5 values 
s.iloc[:]   # slice of all values

Indexing can raise an IndexError.


_LocIndexer

pandas.core.indexing._LocIndexer is a view object returned by the loc method. This works much like the _iLocIndexer except that it looks up the set index, rather than the underlying sequential integer index.


CategoryRicottone