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

Ignore empty rows. #452

Open
sharmankita opened this issue Sep 26, 2022 · 1 comment
Open

Ignore empty rows. #452

sharmankita opened this issue Sep 26, 2022 · 1 comment

Comments

@sharmankita
Copy link

sharmankita commented Sep 26, 2022

I was using flag ignoreEmpty for this, But somewhere we have a static code flow that all object will have same number of keys , and this flag is causing error for that.

Is there any way to ignore only completely empty rows not rows with values in some column.

EX :

a,b,c
test1,2,3

test2,3,
test3,4,5

this is giving me
[{a :test1 , b : 2 , c:3} , {a :test2 , b : 3 }, {a :test3 , b : 4 , c:5}]
but i want this

[{a :test1 , b : 2 , c:3} , {a :test2 , b : 3 , c:""}, {a :test3 , b : 4 , c:5}]
is there any way to achieve this?

@Kyaw-Zin-Thant
Copy link

Remove ignoreEmpty option. The result will get you want.

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

2 participants