Hello everyone,
I have a data grid as request variable in my event and I want to save the columns as separate lists.
Example:
df =
ANCILLARY PRICE
"ABC" 20
"DEF" 30
should be converted into
["ABC","DEF"] (character list)
[20,30] (integer list)
I have tried using a process node with Jython code but I wasn't successful using something like
list = df.loc(:,"ANCILLARY") or list = df[["ANCILLARY"]].tolist()
Would be great to get some input on this problem, thanks in advance.
Hi KiKa,
You can do this without code if you would prefer, with the following steps:
Regards
James
Hi James,
thanks for your answer. I tried your suloution and created a new list variable in the assignment node. However, the column of data grids do not appear as a selection option. Maybe this is because RTDM does not recognize the format (character/integer etc) of the columns? Is there a way to assign this for each column of a data grid?
Thanks for the help and best regards,
KiKa
Stay ahead of what's shaping modern marketing. Subscribe to the CMO Mandate for sharp perspectives on AI, strategy and what's next.Follow Customer Intelligence 360 on LinkedIn for insights, success stories, and practical tips to help you modernize your marketing stack.
Want to review SAS CI360? G2 is offering a gift card or charitable donation to One Tree Planted for each accepted review. Use this link to opt out of receiving anything of value for your review.
SAS Customer Intelligence 360
Training Resources
SAS' Peter Ansbacher shows you how to use the dashboard in SAS Customer Intelligence 360 for better results.
Find more tutorials on the SAS Users YouTube channel.
Stay ahead of what's shaping modern marketing. Subscribe to the CMO Mandate for sharp perspectives on AI, strategy and what's next.Follow Customer Intelligence 360 on LinkedIn for insights, success stories, and practical tips to help you modernize your marketing stack.
Want to review SAS CI360? G2 is offering a gift card or charitable donation to One Tree Planted for each accepted review. Use this link to opt out of receiving anything of value for your review.
SAS Customer Intelligence 360
Training Resources