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: DataFrame.iloc is not properly handled #99

Closed
UranusSeven opened this issue Dec 16, 2022 · 0 comments · Fixed by #116
Closed

BUG: DataFrame.iloc is not properly handled #99

UranusSeven opened this issue Dec 16, 2022 · 0 comments · Fixed by #116
Assignees
Labels
bug Something isn't working
Milestone

Comments

@UranusSeven
Copy link
Contributor

Describe the bug

DataFrame.iloc returns a mars object.

To Reproduce

>>> import xorbits.pandas as pd
>>> dates = pd.date_range("20130101", periods=6)
>>> df = pd.DataFrame(np.random.randn(6, 4), index=dates, columns=list("ABCD"))
>>> df.iloc[3]
Series(op=DataFrameIlocGetItem)

Expected behavior

>>> import xorbits.pandas as pd
>>> dates = pd.date_range("20130101", periods=6)
>>> df = pd.DataFrame(np.random.randn(6, 4), index=dates, columns=list("ABCD"))
>>> df.iloc[3]
A    0.721555
B   -0.706771
C   -1.039575
D    0.271860
Name: 2013-01-04 00:00:00, dtype: float64
@UranusSeven UranusSeven added the bug Something isn't working label Dec 16, 2022
@UranusSeven UranusSeven added this to the v0.0.1 milestone Dec 16, 2022
This was referenced Dec 19, 2022
@UranusSeven UranusSeven linked a pull request Dec 30, 2022 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants