Skip to content

KeyError when referencing to columns following by first #1728

@YarShev

Description

@YarShev

Describe the problem

The exception is raised when referencing to columns following by first. An example is below.

Source code / logs

import modin.pandas as pd
import pandas
mdf = pd.DataFrame([[1,2,3],[4,5,6],[7,8,9]])
pdf = pandas.DataFrame([[1,2,3],[4,5,6],[7,8,9]])
pdf[0]
0    1
1    4
2    7
Name: 0, dtype: int64
pdf[1]
0    2
1    5
2    8
Name: 1, dtype: int64
pdf[2]
0    3
1    6
2    9
Name: 2, dtype: int64
mdf[0]
0    1
1    4
2    7
Name: 0, dtype: int64
mdf[1]
KeyError: "None of [Int64Index([0], dtype='int64')] are in the [index]"
mdf[2]
KeyError: "None of [Int64Index([0], dtype='int64')] are in the [index]"

Metadata

Metadata

Labels

bug 🦗Something isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions