pandera.typing.Index¶
- class pandera.typing.Index(data=None, dtype=None, copy: bool = False, name=None, tupleize_cols: bool = True)[source]¶
Representation of pandas.Index, only used for type annotation.
new in 0.5.0
Attributes
T
Return the transpose, which is by definition self.
array
The ExtensionArray of the data backing this Series or Index.
default_dtype
dtype
Return the dtype object of the underlying data.
empty
has_duplicates
Check if the Index has duplicate values.
hasnans
Return True if there are any NaNs.
inferred_type
Return a string of the type inferred from the values.
is_monotonic_decreasing
Return a boolean if the values are equal or decreasing.
is_monotonic_increasing
Return a boolean if the values are equal or increasing.
is_unique
Return if the index has unique values.
name
Return Index or MultiIndex name.
names
nbytes
Return the number of bytes in the underlying data.
ndim
Number of dimensions of the underlying data, by definition 1.
nlevels
Number of levels.
shape
Return a tuple of the shape of the underlying data.
size
Return the number of elements in the underlying data.
values
Return an array representing the data in the Index.
Methods