Each row in the DataFrame will be one subject. The columns in the DataFrame will be various numerical data that each subject has.
The function should take in a list of subjects as the first argument, and a list of strings as the second argument. These strings are to be used to identify what columns will be included in the returned DataFrame.
The main goal of this is so that we can run statistical test later or generate visualizations easily using DataFrame.
Implement a capability to easily generate a pandas.DataFrame (https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html) object.
Each row in the DataFrame will be one subject. The columns in the DataFrame will be various numerical data that each subject has.
The function should take in a list of subjects as the first argument, and a list of strings as the second argument. These strings are to be used to identify what columns will be included in the returned DataFrame.
The main goal of this is so that we can run statistical test later or generate visualizations easily using DataFrame.
example)
getDataFrame([s0, s1, s2, s3], ["participant_id", "feature_classification_score", "design_classification_score"])
The above function call should return a DataFrame object with four rows and three columns.
Some data of interest: