Using Split String Values in a PyTransform
kateblanch opened this issue · comments
I'm using "Split Values" option in Karma to split a string - this yields "Column A" with nested "Values". Can I call "Values" into a PyTransform?
I need to create the ActorURI from the Split Values. This worked below, but only returned the top 2 values.
return "/actor/"+getValueFromNestedColumnByIndex("EventAsscPersonIDPrim", "Values", getRowIndex())
Hi,
"Values" can be used for pytransform.
And to create ActorURI, which value do you want to use from values? (some node have multiple values).
Choice of last parameter in getValueFromNestedColumnByIndex() depends upon that. (https://github.com/usc-isi-i2/Web-Karma/wiki/Transforming-Data#split-values)
Thanks
Thanks for the feedback!