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

Missing column with excel reader for mostly empty column #593

Open
matt-erhart opened this issue Aug 1, 2023 · 4 comments
Open

Missing column with excel reader for mostly empty column #593

matt-erhart opened this issue Aug 1, 2023 · 4 comments

Comments

@matt-erhart
Copy link

matt-erhart commented Aug 1, 2023

Missing column with excel reader in nodejs. The column has a header name and many but not all blanks in the rows. I think this is because the xlsx package represents blanks as a missing key in the json rather than keeping the key and setting null, but need to test out more. Danfo may not be handling the conversion from json when some keys are missing or mostly missing. I am also seeing values from the missing column showing up in another column.

Make a column start out with empty values and be mostly empty, and it won't be in the columns list. You might see the missing columns values show up in another column. If I put a value in every row, the column shows up.

  • OS: windows
  • node 16
@marnunez
Copy link

marnunez commented Feb 7, 2024

Same exact problem here. Might have to resort to filling in manually the missing columns by hand, which is less than ideal.

@DogeVenci
Copy link

The same problem,does anyone have a solution?

@jaycoolslm
Copy link

Yep, also facing this issue.

For me it is caused when the top most row is empty. Then the column is not processed

@jaycoolslm
Copy link

Solution (ish) can be found here #643 (comment)

You need to create the json data yourself using XLSX then can create a new dataframe

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

No branches or pull requests

4 participants