如何拆分Python链?
有人使用 python-chain 包并且知道是否可以拆分链?我想像
intermediate_result = chain.state() >> step_1 >> step_2
final_result_1 = intermediate_result >> step_3_1 >> step_4_1
final_result_2 = intermediate_result >> step_3_2 >> step_4_2
这里是我的意思的包的链接: https://pypi.org/project /python-链/
Does someone use the python-chain package and know if it is possible to split up chains? I would Imagine something like
intermediate_result = chain.state() >> step_1 >> step_2
final_result_1 = intermediate_result >> step_3_1 >> step_4_1
final_result_2 = intermediate_result >> step_3_2 >> step_4_2
Here the link to the package I mean: https://pypi.org/project/python-chain/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到 anwser:
请注意,只有在 middle_result 不包含任何不可序列化对象(例如 pyspark 数据帧)时,这才有效
Found the anwser:
Be aware that this only work if intermediate_result does not contain any non-serializable object such as pyspark dataframes