You are viewing documentation about an older version (1.20.0). View latest version

modin.pandas.Index

class snowflake.snowpark.modin.pandas.Index(data: ArrayLike | SnowflakeQueryCompiler | None = None, dtype: str | np.dtype | ExtensionDtype | None = None, copy: bool = False, name: object = None, tupleize_cols: bool = True, convert_to_lazy: bool = True)[source]

Bases: object

Methods

all()

Return whether all elements are Truthy.

any()

Return whether any element is Truthy.

append()

Append a collection of Index options together.

argmax()

Return int position of the largest value in the Series.

argmin()

Return int position of the smallest value in the Series.

astype(**kwargs)

copy(**kwargs)

delete()

Make new Index with passed location(-s) deleted.

difference(**kwargs)

drop(**kwargs)

drop_duplicates()

Return Index with duplicate values removed.

dropna()

Return Index without NA/NaN values.

duplicated(**kwargs)

equals(**kwargs)

fillna()

Fill NA/NaN values with the specified value.

get_indexer_for(**kwargs)

get_level_values(**kwargs)

hasnans()

Return True if there are any NaNs.

identical()

Similar to equals, but checks that object attributes and types are also equal.

insert()

Make new Index inserting new item at location.

intersection(**kwargs)

is_boolean()

Check if the Index only consists of booleans.

is_floating()

Check if the Index is a floating type.

is_integer()

Check if the Index only consists of integers.

is_interval()

Check if the Index holds Interval objects.

is_numeric()

Check if the Index only consists of numeric data.

is_object()

Check if the Index is of the object dtype.

isin()

Return a boolean array where the index values are in values.

isna()

Detect missing values.

item(**kwargs)

join()

Compute join_index and indexers to conform data structures to the new index.

max()

Return the maximum value of the Index.

min()

Return the minimum value of the Index.

notna()

Detect existing (non-missing) values.

nunique(**kwargs)

reindex()

Create index with target's values.

rename()

Alter Index or MultiIndex name.

set_local_index([data, dtype, copy, name, ...])

Helper method to create and save local index when index should not be lazy

set_names(names[, level, inplace])

Set Index name.

set_query_compiler([data, dtype, copy, ...])

Helper method to find and save query compiler when index should be lazy

slice_indexer(**kwargs)

sort_values(**kwargs)

to_frame(**kwargs)

to_list()

Return a list of the values.

to_pandas()

Convert Snowpark pandas Index to pandas Index

to_series(**kwargs)

tolist()

Return a list of the values.

union(**kwargs)

unique(**kwargs)

value_counts(**kwargs)

Attributes

T

Return the transpose, which is by definition self.

array

dtype

empty

Whether the index is empty.

has_duplicates

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

name

Get the index name.

names

Get names of index

ndim

Number of dimensions of the underlying data, by definition 1.

nlevels

shape

Get a tuple of the shape of the underlying data.

size

Get the number of elements in the underlying data.

str

Vectorized string functions for Series and Index.

values

Return an array representing the data in the Index.