-
Notifications
You must be signed in to change notification settings - Fork 92
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
Apply functions to row header #21
Comments
Hi @ArcticTee, thanks for bringing that case, and a solution which I believe is a very good one. And it seems to match with a suggestion that I've left open a few months ago. Take a look at this issue and tell me what you think of this approach: |
Yeah, this option is fine as long as you know the name of your columns. I am currently working on a general import of Excel files and I do not know the column format of that files when implementing it. The user of this import tool shall give the sheet name and if the file contains (and if so where the header row lies) in a GUI. Therefore I would be happy if the enhancement for single keys and all keys for unknown columns would be added 👍 |
I believe that both ideas can be joined. In fact, I can see two different issues here. The first one is to never let data be discarded due to multiple column headers with the same name. By default it should The second issue is about the interface to apply a pipeline of data transformations. I believe that the first one is what will solve your current problem, am I right? |
Just partly. Because it is just one transformation our tool needs to do. We are using a MongoDB which accepts JSON inputs. E.g. this But another practical problem the pipeline/transformation would solve is that invalid column names (which can be checked by just looking at a single key) can be resolved. e.g. So for my use case it would be great if pipelines for single and all keys would be supported. The |
@DiegoZoracKy Any updates on this? Let me know if I can help you. |
I'm almost with no free time during this month. Probably, from next week
onwards I'll be able to get back to this issue. The point is to define a
good interface for us to configure the transformations.
…On Tue, Nov 20, 2018, 8:38 AM ArcticTee ***@***.*** wrote:
@DiegoZoracKy <https://github.com/DiegoZoracKy> Any updates on this? Let
me know if I can help you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB_oP6znGw42pj5r7EsMxfLFgOddHVsSks5uw9utgaJpZM4YSSPj>
.
|
Yeah. I am happy you are on it. |
hi there, since this has been a long time. Is there any news on this issue? In my case i would like to apply a camelCase function to the headerrow but applying a function to {{columnHeader}} results in undefined keys. |
Hi,
first of all, this is a great library, thank you for keeping this up! To enhance the functionality I would like to do the following:
I just tried to import a sheet which has a header row with duplicates like this:
This will result in a json object like this:
I would like get the option to apply multiple functions to the header row to transform the column names when using the auto columnToKey mapping - maybe something like this:
Where the
transformSingleKey
- Array willmap
over the columnnames and apply all functionsAnd the
transformAllKeys
- Array will work the whole column arraysuffixDuplicates(cleanedUp)
Helper functions:
Thank you
The text was updated successfully, but these errors were encountered: