pandera.typing.pyspark.Index¶
- class pandera.typing.pyspark.Index(data: Any | None = None, dtype: str | dtype | ExtensionDtype | None = None, copy: bool = False, name: Any | Tuple[Any, ...] | None = None, tupleize_cols: bool = True, **kwargs: Any)[source]¶
Representation of pandas.Index, only used for type annotation.
new in 0.8.0
Attributes
TReturn the transpose, For index, It will be index itself.
default_dtypedtypeReturn the dtype object of the underlying data.
emptyReturns true if the current object is empty.
has_duplicatesIf index has duplicates, return True, otherwise False.
hasnansReturn True if it has any missing values.
inferred_typeReturn a string of the type inferred from the values.
is_monotonic_decreasingReturn boolean if values in the object are monotonically decreasing.
is_monotonic_increasingReturn boolean if values in the object are monotonically increasing.
is_uniqueReturn if the index has unique values.
nameReturn name of the Index.
namesReturn names of the Index.
ndimReturn an int representing the number of array dimensions.
nlevelsNumber of levels in Index & MultiIndex.
shapeReturn a tuple of the shape of the underlying data.
sizeReturn an int representing the number of elements in this object.
valuesReturn an array representing the data in the Index.
Methods