Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprecated function in MultiIndex #1140

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 46 additions & 46 deletions databricks/koalas/missing/indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,68 +124,22 @@ class _MissingPandasLikeMultiIndex(object):
flags = unsupported_property('flags', deprecated=True)

# Functions
append = unsupported_function('append')
argmax = unsupported_function('argmax')
argmin = unsupported_function('argmin')
argsort = unsupported_function('argsort')
asof = unsupported_function('asof')
asof_locs = unsupported_function('asof_locs')
delete = unsupported_function('delete')
difference = unsupported_function('difference')
drop = unsupported_function('drop')
droplevel = unsupported_function('droplevel')
duplicated = unsupported_function('duplicated')
equal_levels = unsupported_function('equal_levels')
equals = unsupported_function('equals')
factorize = unsupported_function('factorize')
format = unsupported_function('format')
get_indexer = unsupported_function('get_indexer')
get_indexer_for = unsupported_function('get_indexer_for')
get_indexer_non_unique = unsupported_function('get_indexer_non_unique')
get_level_values = unsupported_function('get_level_values')
get_loc = unsupported_function('get_loc')
get_loc_level = unsupported_function('get_loc_level')
get_locs = unsupported_function('get_locs')
get_slice_bound = unsupported_function('get_slice_bound')
get_value = unsupported_function('get_value')
groupby = unsupported_function('groupby')
holds_integer = unsupported_function('holds_integer')
identical = unsupported_function('identical')
insert = unsupported_function('insert')
intersection = unsupported_function('intersection')
is_ = unsupported_function('is_')
is_lexsorted = unsupported_function('is_lexsorted')
is_lexsorted_for_tuple = unsupported_function('is_lexsorted_for_tuple')
is_mixed = unsupported_function('is_mixed')
is_type_compatible = unsupported_function('is_type_compatible')
join = unsupported_function('join')
map = unsupported_function('map')
nunique = unsupported_function('nunique')
putmask = unsupported_function('putmask')
ravel = unsupported_function('ravel')
reindex = unsupported_function('reindex')
remove_unused_levels = unsupported_function('remove_unused_levels')
reorder_levels = unsupported_function('reorder_levels')
repeat = unsupported_function('repeat')
searchsorted = unsupported_function('searchsorted')
set_codes = unsupported_function('set_codes')
set_labels = unsupported_function('set_labels')
set_levels = unsupported_function('set_levels')
set_names = unsupported_function('set_names')
set_value = unsupported_function('set_value')
slice_indexer = unsupported_function('slice_indexer')
slice_locs = unsupported_function('slice_locs')
sort_values = unsupported_function('sort_values')
sortlevel = unsupported_function('sortlevel')
swaplevel = unsupported_function('swaplevel')
take = unsupported_function('take')
to_flat_index = unsupported_function('to_flat_index')
to_frame = unsupported_function('to_frame')
to_native_types = unsupported_function('to_native_types')
truncate = unsupported_function('truncate')
union = unsupported_function('union')
view = unsupported_function('view')
where = unsupported_function('where')

# Deprecated functions
get_duplicates = unsupported_function('get_duplicates', deprecated=True)
Expand All @@ -194,6 +148,52 @@ class _MissingPandasLikeMultiIndex(object):
get_values = unsupported_function('get_values', deprecated=True)
contains = unsupported_function('contains', deprecated=True)
item = unsupported_function('item', deprecated=True)
append = unsupported_function('append', deprecated=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

argmax = unsupported_function('argmax', deprecated=True)
argmin = unsupported_function('argmin', deprecated=True)
argsort = unsupported_function('argsort', deprecated=True)
asof = unsupported_function('asof', deprecated=True)
asof_locs = unsupported_function('asof_locs', deprecated=True)
delete = unsupported_function('delete', deprecated=True)
difference = unsupported_function('difference', deprecated=True)
drop = unsupported_function('drop', deprecated=True)
duplicated = unsupported_function('duplicated', deprecated=True)
equal_levels = unsupported_function('equal_levels', deprecated=True)
equals = unsupported_function('equals', deprecated=True)
factorize = unsupported_function('factorize', deprecated=True)
format = unsupported_function('format', deprecated=True)
get_indexer_for = unsupported_function('get_indexer_for', deprecated=True)
get_indexer_non_unique = unsupported_function('get_indexer_non_unique', deprecated=True)
get_slice_bound = unsupported_function('get_slice_bound', deprecated=True)
get_value = unsupported_function('get_value', deprecated=True)
groupby = unsupported_function('groupby', deprecated=True)
holds_integer = unsupported_function('holds_integer', deprecated=True)
identical = unsupported_function('identical', deprecated=True)
insert = unsupported_function('insert', deprecated=True)
intersection = unsupported_function('intersection', deprecated=True)
is_ = unsupported_function('is_', deprecated=True)
is_lexsorted_for_tuple = unsupported_function('is_lexsorted_for_tuple', deprecated=True)
is_mixed = unsupported_function('is_mixed', deprecated=True)
is_type_compatible = unsupported_function('is_type_compatible', deprecated=True)
join = unsupported_function('join', deprecated=True)
map = unsupported_function('map', deprecated=True)
nunique = unsupported_function('nunique', deprecated=True)
putmask = unsupported_function('putmask', deprecated=True)
ravel = unsupported_function('ravel', deprecated=True)
reindex = unsupported_function('reindex', deprecated=True)
repeat = unsupported_function('repeat', deprecated=True)
searchsorted = unsupported_function('searchsorted', deprecated=True)
set_labels = unsupported_function('set_labels', deprecated=True)
set_names = unsupported_function('set_names', deprecated=True)
slice_indexer = unsupported_function('slice_indexer', deprecated=True)
slice_locs = unsupported_function('slice_locs', deprecated=True)
sort_values = unsupported_function('sort_values', deprecated=True)
take = unsupported_function('take', deprecated=True)
to_native_types = unsupported_function('to_native_types', deprecated=True)
truncate = unsupported_function('truncate', deprecated=True)
union = unsupported_function('union', deprecated=True)
view = unsupported_function('view', deprecated=True)
where = unsupported_function('where', deprecated=True)

# Functions we won't support.
values = common.values(unsupported_property)
Expand Down