active_importer icon indicating copy to clipboard operation
active_importer copied to clipboard

Import values without headers

Open hsyn opened this issue 10 years ago • 3 comments

Is there any way to import this kind of data? So no headers present, but comma separated phone numbers for example.

07012345678, 071234567, 00467012345680,

hsyn avatar Dec 21 '15 15:12 hsyn

Could you be more specific? Is this a single excel column where you include a string of comma-separated values? Or do you mean several columns without header?

If it's the former, then why not giving the column a header title anyway? Then internally process the comma-separated string in whatever way is needed.

If it's the latter case, then how do you propose the imported code can reference these columns that have no title. Right now the column title is the way the importer can reference a column value in the current row.

Looking forward to your comments on this. Thanks for your interest in the project.

gnapse avatar Dec 21 '15 16:12 gnapse

Hey, Thanks for the quick reply.

I was mostly wondering if it is possible to import a csv file that contains only numbers that are comma separated.

This is one of the use cases we will be getting from customers. They will just send us all the phone numbers without any headers since it is only one attribute. Something like the example i showed you above.

phone_number, phone_number, phone_number, ...

I can see from the code that it is not yet possible, I just wondered if you plan on implementing this.

Thanks for the library btw!

hsyn avatar Dec 21 '15 16:12 hsyn

Would be nice to have a sample excel/csv file of how this would come. Is it various rows as well? In that case how do you match each row to a record?

gnapse avatar Dec 21 '15 16:12 gnapse