sparse-intern-71089
12/06/2021, 6:30 PMred-match-15116
12/06/2021, 6:32 PMred-match-15116
12/06/2021, 6:34 PMapply
. It's possible the errors you are running into is when you try to print
the output?breezy-table-35227
12/06/2021, 6:36 PMbreezy-table-35227
12/06/2021, 6:36 PMred-match-15116
12/06/2021, 6:36 PMwe’d just refit everything to use an apply callback any time an output is usedthat's probably not necessary TBH
breezy-table-35227
12/06/2021, 6:37 PMbreezy-table-35227
12/06/2021, 6:38 PMred-match-15116
12/06/2021, 7:02 PMred-match-15116
12/06/2021, 7:03 PMbreezy-table-35227
12/06/2021, 7:11 PMbreezy-table-35227
12/06/2021, 7:11 PMred-match-15116
12/06/2021, 7:13 PMres1 = MyResource("my_resource", property="blah")
res2 = OtherResource("foo", dependent_property=res1.property)
If you need to transform the output (like add something to the string)
res1 = MyResource("my_resource", property="blah")
res2 = OtherResource("foo", dependent_property=res1.property.apply(lambda x: f"new-string-{x}")
red-match-15116
12/06/2021, 7:15 PMbreezy-table-35227
12/06/2021, 7:21 PMbreezy-table-35227
12/06/2021, 10:34 PMprint
suggestion was not far off, Outputs were just being used as an argument to not-a-Resourcebreezy-table-35227
12/06/2021, 10:34 PMred-match-15116
12/07/2021, 3:03 AM