Skip to content
Snippets Groups Projects
Commit c845f434 authored by Hafiz Emin Kosar's avatar Hafiz Emin Kosar
Browse files

- enabled evaluation of multiple dataframes

parent 65ecf91f
Branches
No related tags found
1 merge request!10- major changes in feedback
%% Cell type:markdown id: tags:
# Collection
%% Cell type:code id: tags:
``` python
from rwth_nb.misc.feedback import RWTHFeedbackCollector
path_to_folder = './Feedbacks' # path to folder with feedback json files
path_to_folder = './Feedbacks/FeedbackV6' # path to folder with feedback json files
collector = RWTHFeedbackCollector(path_to_folder)
data = collector.get_all() # get feedback for all notebooks
data
collector = RWTHFeedbackCollector()
data_v6 = collector.get_all('./Feedbacks/FeedbackV6') # get feedback for all notebooks
data_v7 = collector.get_all('./Feedbacks/FeedbackV7')
```
%% Cell type:markdown id: tags:
# Evaluation
%% Cell type:code id: tags:
``` python
%matplotlib widget
from rwth_nb.misc.feedback import RWTHFeedbackEvaluator
eva = RWTHFeedbackEvaluator(data) # collect feedback data using rwth_nb.misc.feedback.RWTHFeedbackCollector first
eva.evaluate(lang='de')
```
......
......@@ -507,6 +507,8 @@ class RWTHFeedbackEvaluator:
list of ids of the free text option answers in the dataframe
answers identified by those ids are inserted into a list
"""
self.data = pd.concat(data, axis=1) if isinstance(data, list) else data
likert_scale = getattr(RWTHFeedback, f'feedback_scale_options_{lang}')
scale_options = scale_options
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment