我是斯威夫特的新手,我想学习它与Python的集成。我看到了斯威夫特的快速人工智能课程,他们使用Python语言。我的问题与这个有关,在这里我想运行一个简单的例子,如下面的例子:
import Python
let np = Python.import("numpy")
我得到了这个错误
error: module 'Python' has no member named 'import'
public let np = Python.import("numpy")
^~~~~~ ~~~~~~
中提
我刚刚开始学习如何将Python与U-SQL集成。我正在做这个例子:
REFERENCE ASSEMBLY [ExtPython];
DECLARE @myScript = @"
def get_mentions(tweet):
return ';'.join( ( w[1:] for w in tweet.split() if w[0]=='@' ) )
def usqlml_main(df):
del df['time']
del df['author']