You are viewing documentation about an older version (1.21.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.

Currently, there is no lazy MultiIndex support. This lazy Index object is only a single Index object. However, existing Snowpark pandas DataFrame and Series APIs may support native pandas MultiIndex objects.

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

Y

has_duplicates

Y

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

P

N for non-integer/boolean types.

any

P

N for non-integer/boolean types.

argmin

Y

argmax

Y

copy

Y

delete

N

drop

N

drop_duplicates

N

duplicated

N

equals

Y

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

P

N if the Index values are tuple-like, or method is nearest.

rename

N

repeat

N

where

N

take

N

putmask

N

unique

Y

nunique

Y

value_counts

P

bins

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