abc-classroom.roster¶
- abcclassroom.roster.column_to_split_exists(input_file_path, column_to_split)[source]¶
Given a path to the input file and a column name to split into first_name, last_name, this method checks that the column_to_split exists. Returns True is present and False if not present.
- abcclassroom.roster.create_roster(input_file, output_file='nbgrader_roster.csv', column_to_split='name')[source]¶
Given a roster file downloaded from GitHub Classroom, creates a roster file suitable for use with abc-classroom and nbgrader.
- Parameters
input_file (string) – Path to the GitHub Classroom roster
output_file (string) – Name of the output file. Default is abc_roster.csv
column_to_split (string) – The column that we want to split to create the new columns first_name and last_name. Default is “name”. If the column provided does not exist, does not create first and last name columns.