- name: canvas-student-analysis-reformatting
- python>=3.7
Canvas Quiz Student Analysis Reformatting is a python script that will reformat any Canvas Quiz Student Analysis export from "wide" to "long" format.
- any csv file in
quiz_student_analysis_file
- note: if there are multiple csvs in this file they will be combined into a single output
- see "sample.csv" in the
sample
folder for example (note - you could run this with the sample to see how it works!)
To extract your Student Analysis file from a quiz, in Canvas navigate to the quiz you are interested in, select "Quiz Statistics", and then "Student Analysis". The csv that is generated should then be saved in quiz_student_analysis_file
- the input file must include all columns in the original export (green), as well as the questions from that quiz (multi colours)
see "sample_long_format.csv" The long format of the given csv(s) in the input folder.
- name: student name
- id: student Canvas id
- sis_id: student sis id
- section: Canvas section
- section_id: Canvas section id
- submitted: timestamp of submission (UTC)
- attempt: the attempt of the submission
- question: the original question text
- response: the original student response
- possible_points: the points available for the question
- points_id: remains from the wide to long transformation
- question_id: the question id
- points_given: the given points for the question for the student
- file_name: the filename (useful when including multiple quiz exports)
Note this project should only need to install pandas, so you can skip the environment setup if you are comfortable, as long as you have python3+ and pandas installed. In this case all you need to do is
- make sure you are in the project directory
- add your file(s) to quiz_student_analysis_file
- run
$ python transform_quizzes.py
Project uses conda to manage environment (See official conda documentation here)
- Ensure you have conda installed (Python 3.7+ version)
- Clone canvas-student-analysis-reformatting repository
- Import environment (once):
$ conda env create -f environment.yml
- Run
$ conda activate canvas-student-analysis-reformatting
$ python transform_quizzes.py
authors: @alisonmyers