Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

BUG: index name is not working #141

Open
UranusSeven opened this issue Jan 31, 2023 · 0 comments
Open

BUG: index name is not working #141

UranusSeven opened this issue Jan 31, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@UranusSeven
Copy link

Describe the bug

When creating a dataframe with a named index like:

df = md.DataFrame({"foo": (1, 2, 3), "bar": (4, 4, 4)}, index=md.Series([1, 2, 5], name='i'))

The index of resulting dataframe doesn't have a name.

   foo  bar
1    1    4
2    1    5
3    3    6

And for pandas:

df = pd.DataFrame({"foo": (1, 2, 3), "bar": (4, 4, 4)}, index=pd.Series([1, 2, 5], name='i'))
df

The resulting dataframe be like:

   foo  bar
i
1    1    4
2    2    4
5    3    4
@XprobeBot XprobeBot added the bug Something isn't working label Jan 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants