0 votes
1 view
in Azure by (5.8k points)

AzureML's Python Script module requires to return a Pandas DataFrame. I want to return only a value and I do this:




by which I am able to return just a single value in Azure ML's Python Script module.

What is a proper way to create a pandas DataFrame with a single value?

1 Answer

0 votes
by (9.6k points)

The code below should work:

import pandas as pd

def azureml_main(dataframe1 = None, dataframe2 = None):

    result = pd.DataFrame({'mycol': [123]})

    return result,

Welcome to Intellipaat Community. Get your technical queries answered by top developers !