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

pd.Index supported APIs

The following table is structured as follows: The first column contains the method name. The second column is a flag for whether or not there is an implementation in Snowpark for the method in the left column.

Note

Y stands for yes, i.e., supports distributed implementation, N stands for no and API simply errors out, P stands for partial (meaning some parameters may not be supported yet), and D stands for defaults to single node pandas execution via UDF/Sproc.

Attributes

Index attribute

Snowpark implemented? (Y/N/P/D)

Notes for current implementation

values

Y

is_monotonic_increasing

N

is_monotonic_decreasing

N

is_unique

N

has_duplicates

N

hasnans

N

dtype

Y

inferred_type

N

shape

Y

name

Y

names

P

nbytes

N

ndim

Y

size

Y

empty

Y

T

Y

memory_usage

N

nlevels

P

Only single Index supported.

array

N

str

D

Methods

DataFrame method

Snowpark implemented? (Y/N/P/D)

Missing parameters

Notes for current implementation

all

N

any

N

argmin

N

argmax

N

copy

Y

delete

N

drop

N

drop_duplicates

N

duplicated

N

equals

D

Currently converts the Snowpark pandas Index to a native pandas Index and then compares the objects.

factorize

N

identical

N

insert

N

is_

N

is_boolean

N

is_categorical

N

is_floating

N

is_integer

N

is_interval

N

is_numeric

N

is_object

N

min

N

max

N

reindex

N

rename

N

repeat

N

where

N

take

N

putmask

N

unique

Y

nunique

Y

value_counts

N

set_names

N

droplevel

N

fillna

N

dropna

N

isna

N

notna

N

astype

Y

item

Y

map

N

ravel

N

to_list

Y

to_series

Y

to_frame

Y

view

N

argsort

N

searchsorted

N

sort_values

P

key

Snowpark pandas currently uses stable sort when sorting the index values. Pandas uses quicksort.

shift

N

append

N

join

N

intersection

N

union

N

difference

N

symmetric_difference

N

asof

N

asof_locs

N

get_indexer

N

get_indexer_for

N

get_indexer_non_unique

N

get_level_values

N

get_loc

N

get_slice_bound

N

isin

N

slice_indexer

N

slice_locs

N

to_pandas

Y