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

[BUG] df.loc[:] generates a different index_value key from original one #2642

Closed
qinxuye opened this issue Jan 21, 2022 · 0 comments · Fixed by #2643
Closed

[BUG] df.loc[:] generates a different index_value key from original one #2642

qinxuye opened this issue Jan 21, 2022 · 0 comments · Fixed by #2643
Labels
mod: dataframe type: bug Something isn't working
Milestone

Comments

@qinxuye
Copy link
Collaborator

qinxuye commented Jan 21, 2022

Describe the bug

df.loc[:] generates a different index_value key from df.index_value.key.

To Reproduce
To help us reproducing this bug, please provide information below:

  1. Your Python version
  2. The version of Mars you use
  3. Versions of crucial packages, such as numpy, scipy and pandas
  4. Full stack of the error.
  5. Minimized code to reproduce the error.
In [1]: import mars.tensor as mt

In [2]: import mars.dataframe as md

In [3]: df = md.DataFrame(mt.random.rand(10, 4), chunk_size=4, index=md.date_ran
   ...: ge('2022-1-1', periods=10))

In [4]: df2 = df.loc[:]

In [5]: df.index_value.key
Out[5]: 'f1f137ddfd28afb3bc0cbece9e232cc0'

In [6]: df2.index_value.key
Out[6]: '6ff9bd78bc9d0f7fbbe9717588296ceb'  # different
@qinxuye qinxuye added type: bug Something isn't working mod: dataframe to be backported Indicate that the PR need to be backported to stable branch labels Jan 21, 2022
@qinxuye qinxuye added this to the v0.9.0a2 milestone Jan 21, 2022
@qinxuye qinxuye added this to Issue-Needs prioritizing in v0.9 Release via automation Jan 21, 2022
@qinxuye qinxuye added this to To do in DataFrame via automation Jan 21, 2022
@qinxuye qinxuye moved this from Issue-Needs prioritizing to Issue-P1 in v0.9 Release Jan 21, 2022
@qinxuye qinxuye removed the to be backported Indicate that the PR need to be backported to stable branch label Jan 21, 2022
DataFrame automation moved this from To do to Done Jan 24, 2022
v0.9 Release automation moved this from Issue-P1 to PR-Done Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod: dataframe type: bug Something isn't working
Projects
DataFrame
  
Done
Development

Successfully merging a pull request may close this issue.

1 participant