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: fix Concatenating dataframe and series with ignore_index = True #60983

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

Anurag-Varma
Copy link
Contributor

@Anurag-Varma Anurag-Varma marked this pull request as draft February 22, 2025 06:59
@Anurag-Varma Anurag-Varma marked this pull request as ready for review February 22, 2025 07:09
Comment on lines +346 to +350
expected = DataFrame(
np.kron(np.where(np.identity(3) == 1, 1, np.nan), arr).T,
index=np.arange(30, dtype=np.int64),
columns=["foo", 0, "bar"],
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous expected DataFrame is incorrect. It then had only 1 column instead of 3 as all their names were getting replaced by 0 and so were merged into 1 column with name 0.

Now changed the code with this PR, so each column will have its previous name and wont get replaced by name 0.

@Anurag-Varma Anurag-Varma marked this pull request as draft February 23, 2025 06:04
@Anurag-Varma Anurag-Varma marked this pull request as ready for review February 23, 2025 06:04
@Anurag-Varma
Copy link
Contributor Author

Hi @rhshadrach

Requesting a review as no reviewer is assigned to the PR

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Concatenating dataframe and series with ignore_index = True drops the series name
1 participant