-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add split_element to convert one element into a few other elements #26
Comments
I'm on the verge on this... This functionality may be too specific, and I fear it may just produce unnecessary clutter. What is your take, @clegaard ? |
I have implemented this as a an operation subsample, which uses a user-defined function to split each sample. |
I don't think the thing you have @clegaard implemented is what @iliiliiliili was looking for. You split a sample into multiple samples. @iliiliiliili asked for a method which splits an element in a single sample into multiple elements, e.g. |
I guess a transform is a right way to go then, only issue is the naming. |
Closing for now |
Currently, to create new elements from another we can use
dataset.transform(lambda x: (x[0], make_P(x[1]), make_R(x[1]), x[2]))
. This approach breaks dataset names, so we have to call.named(...)
after it.Implementing
split_element
method that takes name of the (element, function, that returnsList
with created elements,List[str]
of names of new elements) allows us to process the data without the need to touch other data, so less chances for user to make an error.The text was updated successfully, but these errors were encountered: