You want to output the descriptive statistics of a column in a dataset, and you want to output the result in an specific format. For example, the name of the 50% index changed to 'median'.
You do not want to install Python in your computer to do this work.
Use Microsoft Azure Machine Learning Studio: https://studio.azureml.net/, a free platform to create and run code in Python.
The definition below outputs the statistics in the specified format above.
Data: It needs to be uploaded in Azure ML Studio under the "Datasets" tab, and it needs to be a csv format.
Method: It takes two parameters, the first one is the dataset we are working on, and the second one is the column name we are interested in calculating the descriptive statistics.
To use it:
-
Change the name of the dataset in the "ds" variable
-
Identify the name of the column we are interested in in this case 'Ptrust'
-
Run:
describe(frame, 'PTrustb')