You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think block.add_option can set the type of element to select as follows.
How can I receive this item candidate from node's input?
I would like to create a node that receives a data frame and selects a specific column within that data frame, as in the code example below. However, after the items are first rendered, they seem to remain the same regardless of the node's connection state.
I am sorry it has taken so long.
And thank you for your comments.
Sorry, what I want to do is to take the information of the node's input and set it to the items of the option.
In other words, in this code, for example, when the columns of In(df) are [“a”, “b”, “c”], items will be [“a”, “b”, “c”], and when the columns are [“dog”, “cat”, “sheep”], items will be [“dog”, “cat”, “sheep”]. This is what we want.
However, the option items is always [“select y”], which is df is None behavior. From what I can see, it seems that the items in block.add_option are determined when the block is added and then do not change dynamically based on the node's connection state.
We would like to create a node where the user uploads a csv file, reads the csv as a dataframe, and then creates a node that selects a specific column and does some processing.
I think block.add_option can set the type of element to select as follows.
How can I receive this item candidate from node's input?
I would like to create a node that receives a data frame and selects a specific column within that data frame, as in the code example below. However, after the items are first rendered, they seem to remain the same regardless of the node's connection state.
The text was updated successfully, but these errors were encountered: