We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug DataFrame.query() by string resets the columns to 0, 1, 2, ... https://danfo.jsdata.org/api-reference/dataframe/danfo.dataframe.query#query-by-a-string-column-in-a-dataframe According to the docs the columns should remain there.
To Reproduce https://danfo.jsdata.org/api-reference/dataframe/danfo.dataframe.query#query-by-a-string-column-in-a-dataframe Copy the example posted and run it.
However if you use inplace: true then the behaviour is correct. Seems the issue is that when returning a new df it forgets to copy the columns.
Expected behavior Column names should remain the same.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
FIXED!
Sorry, something went wrong.
risenW
No branches or pull requests
Describe the bug
DataFrame.query() by string resets the columns to 0, 1, 2, ...
https://danfo.jsdata.org/api-reference/dataframe/danfo.dataframe.query#query-by-a-string-column-in-a-dataframe
According to the docs the columns should remain there.
To Reproduce
https://danfo.jsdata.org/api-reference/dataframe/danfo.dataframe.query#query-by-a-string-column-in-a-dataframe
Copy the example posted and run it.
However if you use inplace: true then the behaviour is correct.
Seems the issue is that when returning a new df it forgets to copy the columns.
Expected behavior
Column names should remain the same.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: