I am working with SQL Server Machine Learning. I am trying to get output from the script.
DECLARE @answers NVARCHAR(MAX)
EXEC sp_execute_external_script @language=N'Python',
@script = N'
import pandas as pd
ser = pd.Series([6, 7, 6 * 7])
df = pd.DataFrame(ser)
OutputDataSet = df',
@output_data_1 = @answers,
@params = N'@answers nvarchar(MAX)'
WITH RESULT SETS((Answer int))
I am getting the following error.
Procedure expects parameter '@params' of type 'ntext/nchar/nvarchar'.
I think I have seen output from R scripts, but I am not able to get it from Python.