在Databricks中运行/导入Python代码或模块
原文英文,约400词,阅读约需2分钟。发表于: 。Databricks is centered around notebooks for doing a lot of works. As a result, it is often not obvious how to run or re-use code from another notebook or Python module. In this post, I want to...
本文介绍了在Databricks平台上如何从另一个笔记本或Python文件中运行或重用代码。可以使用%run命令或dbutils.notebook.run()方法来运行另一个笔记本中的代码。还可以使用Python源文件创建模块并在笔记本中导入使用。
