Python 在 AzureML 中无法在没有更改的情况下传递数据框

Python in AzureML fail to pass dataframe without changes

在 python 中尝试传递数据而不做任何事情时,出现此错误:

Error 0085: The following error occurred during script evaluation, please view the output log for more information:
---------- Start of error message from Python interpreter ----------
Caught exception while executing function: Traceback (most recent call last):
  File "C:\server\invokepy.py", line 175, in batch
    rutils.RUtils.DataFrameToRFile(outlist[i], outfiles[i])
  File "C:\server\RReader\rutils.py", line 28, in DataFrameToRFile
    rwriter.write_attribute_list(attributes)
  File "C:\server\RReader\rwriter.py", line 59, in write_attribute_list
    self.write_object(value);
  File "C:\server\RReader\rwriter.py", line 121, in write_object
    write_function(flags, value.values())
  File "C:\server\RReader\rwriter.py", line 104, in write_objects
    self.write_object(value)
  File "C:\server\RReader\rwriter.py", line 121, in write_object
    write_function(flags, value.values())
  File "C:\server\RReader\rwriter.py", line 71, in write_integers
    self.write_integer(value)
  File "C:\server\RReader\rwriter.py", line 147, in write_integer
    self.writer.WriteInt32(value)
  File "C:\server\RReader\BinaryIO\binarywriter.py", line 26, in WriteInt32
    self.WriteData(self.Int32Format, data)
  File "C:\server\RReader\BinaryIO\binarywriter.py", line 14, in WriteData
    self.stream.write(pack(format, data))
error: cannot convert argument to integer

---------- End of error message from Python  interpreter  ----------
Start time: UTC 05/26/2016 13:16:01
End time: UTC 05/26/2016 13:16:13

这是我要传递的数据:

这是实验:

和 python 代码:

在与 Microsoft 支持人员交谈后,问题是 "Execute Python Script" 模块不能 return 空值。 这可以通过在从 python 读取它之前添加一个 "Clean Missing Data" 模块来解决: