Skip to content

dataframe.rename doesn`t work correctly at MODIN_STORAGE_FORMAT=omnisci #4023

@Rubtsowa

Description

@Rubtsowa

When I run:

import pandas
import modin.pandas as pd
import modin.config as cfg
cfg.StorageFormat.put('omnisci')

tuples_index = [("foo1", "bar1"), ("foo2", "bar2")]
tuples_columns = [("fizz1", "buzz1"), ("fizz2", "buzz2")]
index = pandas.MultiIndex.from_tuples(tuples_index, names=["foo", "bar"])
columns = pandas.MultiIndex.from_tuples(tuples_columns, names=["fizz", "buzz"])

frame_data = [(0, 0), (1, 1)]
modin_df = pd.DataFrame(frame_data, index=index, columns=columns)
modin_renamed = modin_df.rename(index={"foo1": "foo3", "bar2": "bar3"}, columns={"fizz1": "fizz3", "buzz2": "buzz3"},)

I have error:

KeyError: "None of ['F___index__0_foo', 'F___index__1_bar'] are in the columns"

Metadata

Metadata

Labels

HDKRelated to HDK (OmniSci successor) engine or backendP3Very minor bugs, or features we can hopefully add some day.bug 🦗Something isn't workingpandas concordance 🐼Functionality that does not match pandas

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions